PackageConstraint
Package constraint meta model
Table of Contents
Properties
- $constraintType : string
- One of depends, conflicts or suggests
- $maxVersion : string|null
- Maximum version for the constraint
- $minVersion : string|null
- Minimum version for the constraint
- $value : string
- The constraint name or value
Methods
- __construct() : mixed
- Meta data constraint constructor
- getConstraintType() : string
- getValue() : string
Properties
$constraintType
One of depends, conflicts or suggests
        protected
            string
    $constraintType
    
    
    
    
    
    
$maxVersion
Maximum version for the constraint
        protected
            string|null
    $maxVersion
    
    
    
    
    
    
$minVersion
Minimum version for the constraint
        protected
            string|null
    $minVersion
    
    
    
    
    
    
$value
The constraint name or value
        protected
            string
    $value
    
    
    
    
    
    
Methods
__construct()
Meta data constraint constructor
    public
                    __construct(string $constraintType, string $value[, string $minVersion = null ][, string $maxVersion = null ]) : mixed
    Parameters
- $constraintType : string
- $value : string
- $minVersion : string = null
- $maxVersion : string = 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