versionRangeUnaryOperator
in package
implements
VersionRangeOperatorInterface
Represents an unary operator (>,<,=,!=,<=,>=,~) in a version range expression.
Interfaces, Classes and Traits
Table of Contents
- OP_DIFF = 5
- OP_EQ = 0
- OP_GT = 2
- OP_GTE = 3
- OP_LT = 1
- OP_LTE = 4
- $op : mixed
- $operand : mixed
- __construct() : mixed
- compare() : bool
Constants
OP_DIFF
public
mixed
OP_DIFF
= 5
OP_EQ
public
mixed
OP_EQ
= 0
OP_GT
public
mixed
OP_GT
= 2
OP_GTE
public
mixed
OP_GTE
= 3
OP_LT
public
mixed
OP_LT
= 1
OP_LTE
public
mixed
OP_LTE
= 4
Properties
$op
protected
mixed
$op
= -1
$operand
protected
mixed
$operand
= null
Methods
__construct()
public
__construct(int $operator, Version $version) : mixed
Parameters
- $operator : int
-
one of OP_*
- $version : Version
-
the version used to compare
Return values
mixed —compare()
public
compare(Version $value) : bool
Parameters
- $value : Version