versionRangeBinaryOperator
in package
implements
VersionRangeOperatorInterface
Represents a binary operator (AND or OR) in a version range expression.
Interfaces, Classes and Traits
Table of Contents
- OP_AND = 1
- OP_OR = 0
- $left : mixed
- $op : mixed
- $right : mixed
- __construct() : mixed
- compare() : bool
Constants
OP_AND
public
mixed
OP_AND
= 1
OP_OR
public
mixed
OP_OR
= 0
Properties
$left
protected
mixed
$left
= null
$op
protected
mixed
$op
= -1
$right
protected
mixed
$right
= null
Methods
__construct()
public
__construct(int $operator, VersionRangeOperatorInterface $left, VersionRangeOperatorInterface $right) : mixed
Parameters
- $operator : int
-
one of OP_*
- $left : VersionRangeOperatorInterface
- $right : VersionRangeOperatorInterface
Return values
mixed —compare()
public
compare(Version $value) : bool
Parameters
- $value : Version