Defines a constraint.
CloneableInstantiable
Constants |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
public Composer |
Methods |
public __construct( $operator, $version) Sets operator and version to compare with.
|
public __toString() : string
|
public compile( $otherOperator) |
public getLowerBound() |
public getOperator()
|
public static getOperatorConstant( $operator)
|
public getPrettyString() |
public static getSupportedOperators() Get all supported comparison operators.
|
public getUpperBound() |
public getVersion()
|
public matches(Composer
|
public matchSpecific(Composer
|
public setPrettyString( $prettyString) |
public versionCompare( $a, $b, $operator, $compareBranches = false)
|
Properties |
protected $lowerBound = NULL
|
protected $operator = NULL
|
protected $prettyString = NULL
|
protected $upperBound = NULL
|
protected $version = NULL
|
Properties |
private static $transOpInt = ['==', '<', '<=', '>', '>=', '!='] Integer to operator translation table.
|
private static $transOpStr = ['=' => 0, '==' => 0, '<' => 1, '<=' => 2, '>' => 3, '>=' => 4, '<>' => 5, '!=' => 5] Operator to integer translation table.
|
Methods |
private extractBounds()
|
Properties |
private static $transOpInt = ['==', '<', '<=', '>', '>=', '!='] Integer to operator translation table.
|
private static $transOpStr = ['=' => 0, '==' => 0, '<' => 1, '<=' => 2, '>' => 3, '>=' => 4, '<>' => 5, '!=' => 5] Operator to integer translation table.
|
Methods |
public static getOperatorConstant( $operator)
|
public static getSupportedOperators() Get all supported comparison operators.
|