PackageConstraint
Package constraint meta model
Table of Contents
Properties
- $constraintType : string
- $maxVersion : string|null
- $minVersion : string|null
- $value : string
- $versionConstraints : string|null
Methods
- __construct() : mixed
- getConstraintType() : string
- getValue() : string
- getVersionRange() : string
Properties
$constraintType read-only
protected
string
$constraintType
$maxVersion
protected
string|null
$maxVersion
= null
$minVersion
protected
string|null
$minVersion
= null
$value read-only
protected
string
$value
$versionConstraints
protected
string|null
$versionConstraints
= null
Methods
__construct()
public
__construct(string $constraintType, string $value[, string|null $minVersion = null ][, string|null $maxVersion = null ][, string|null $versionConstraints = null ]) : mixed
Parameters
- $constraintType : string
- $value : string
- $minVersion : string|null = null
- $maxVersion : string|null = null
- $versionConstraints : string|null = null
getConstraintType()
public
getConstraintType() : string
Return values
string —The constraint type (depends, conflicts, suggests)
getValue()
public
getValue() : string
Return values
string —The constraint name or value
getVersionRange()
public
getVersionRange() : string