‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Package\MetaData\PackageConstraint Class Reference

Public Member Functions

 __construct ($constraintType, $value, $minVersion=null, $maxVersion=null)
 
string getValue ()
 
string getConstraintType ()
 

Protected Attributes

string $constraintType
 
string $value
 
string null $minVersion
 
string null $maxVersion
 

Detailed Description

Package constraint meta model

Definition at line 21 of file PackageConstraint.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Package\MetaData\PackageConstraint::__construct (   $constraintType,
  $value,
  $minVersion = null,
  $maxVersion = null 
)

Member Function Documentation

◆ getConstraintType()

string TYPO3\CMS\Core\Package\MetaData\PackageConstraint::getConstraintType ( )
Returns
‪string The constraint type (depends, conflicts, suggests)

Definition at line 70 of file PackageConstraint.php.

References TYPO3\CMS\Core\Package\MetaData\PackageConstraint\$constraintType.

Referenced by TYPO3\CMS\Core\Package\MetaData\addConstraint().

◆ getValue()

string TYPO3\CMS\Core\Package\MetaData\PackageConstraint::getValue ( )
Returns
‪string The constraint name or value

Definition at line 62 of file PackageConstraint.php.

References TYPO3\CMS\Core\Package\MetaData\PackageConstraint\$value.

Member Data Documentation

◆ $constraintType

string TYPO3\CMS\Core\Package\MetaData\PackageConstraint::$constraintType
protected

◆ $maxVersion

string null TYPO3\CMS\Core\Package\MetaData\PackageConstraint::$maxVersion
protected

Maximum version for the constraint

Definition at line 41 of file PackageConstraint.php.

Referenced by TYPO3\CMS\Core\Package\MetaData\PackageConstraint\__construct().

◆ $minVersion

string null TYPO3\CMS\Core\Package\MetaData\PackageConstraint::$minVersion
protected

Minimum version for the constraint

Definition at line 36 of file PackageConstraint.php.

Referenced by TYPO3\CMS\Core\Package\MetaData\PackageConstraint\__construct().

◆ $value

string TYPO3\CMS\Core\Package\MetaData\PackageConstraint::$value
protected