MediaWiki  master
ComposerPackageModifier Class Reference

Public Member Functions

 __construct (Package $package, ComposerVersionNormalizer $versionNormalizer, MediaWikiVersionFetcher $versionFetcher)
 
 setProvidesMediaWiki ()
 

Public Attributes

const MEDIAWIKI_PACKAGE_NAME = 'mediawiki/mediawiki'
 

Protected Attributes

 $package
 
 $versionFetcher
 
 $versionNormalizer
 

Private Member Functions

 getMediaWikiVersionConstraint ()
 
 newMediaWikiLink ()
 
 setLinkAsProvides (Link $link)
 

Detailed Description

Note
GPL-2.0-or-later
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Definition at line 11 of file ComposerPackageModifier.php.

Constructor & Destructor Documentation

◆ __construct()

ComposerPackageModifier::__construct ( Package  $package,
ComposerVersionNormalizer  $versionNormalizer,
MediaWikiVersionFetcher  $versionFetcher 
)

Definition at line 19 of file ComposerPackageModifier.php.

References $versionFetcher, and $versionNormalizer.

Member Function Documentation

◆ getMediaWikiVersionConstraint()

ComposerPackageModifier::getMediaWikiVersionConstraint ( )
private

Definition at line 49 of file ComposerPackageModifier.php.

Referenced by newMediaWikiLink().

◆ newMediaWikiLink()

ComposerPackageModifier::newMediaWikiLink ( )
private

Definition at line 35 of file ComposerPackageModifier.php.

References getMediaWikiVersionConstraint().

Referenced by setProvidesMediaWiki().

◆ setLinkAsProvides()

ComposerPackageModifier::setLinkAsProvides ( Link  $link)
private

Definition at line 31 of file ComposerPackageModifier.php.

Referenced by setProvidesMediaWiki().

◆ setProvidesMediaWiki()

ComposerPackageModifier::setProvidesMediaWiki ( )

Definition at line 27 of file ComposerPackageModifier.php.

References newMediaWikiLink(), and setLinkAsProvides().

Member Data Documentation

◆ $package

ComposerPackageModifier::$package
protected

Definition at line 15 of file ComposerPackageModifier.php.

◆ $versionFetcher

ComposerPackageModifier::$versionFetcher
protected

Definition at line 17 of file ComposerPackageModifier.php.

Referenced by __construct().

◆ $versionNormalizer

ComposerPackageModifier::$versionNormalizer
protected

Definition at line 16 of file ComposerPackageModifier.php.

Referenced by __construct().

◆ MEDIAWIKI_PACKAGE_NAME

const ComposerPackageModifier::MEDIAWIKI_PACKAGE_NAME = 'mediawiki/mediawiki'

Definition at line 13 of file ComposerPackageModifier.php.


The documentation for this class was generated from the following file: