Bound
in package
Table of Contents
Properties
- $isInclusive : bool
- $version : string
Methods
- __construct() : mixed
- __toString() : mixed
- compareTo() : bool
- Compares a bound to another with a given operator.
- getVersion() : string
- isInclusive() : bool
- isPositiveInfinity() : bool
- isZero() : bool
- positiveInfinity() : self
- zero() : self
Properties
$isInclusive
private
bool
$isInclusive
$version
private
string
$version
Methods
__construct()
public
__construct(string $version, bool $isInclusive) : mixed
Parameters
- $version : string
- $isInclusive : bool
__toString()
public
__toString() : mixed
compareTo()
Compares a bound to another with a given operator.
public
compareTo(Bound $other, string $operator) : bool
Parameters
- $other : Bound
- $operator : string
Return values
boolgetVersion()
public
getVersion() : string
Return values
stringisInclusive()
public
isInclusive() : bool
Return values
boolisPositiveInfinity()
public
isPositiveInfinity() : bool
Return values
boolisZero()
public
isZero() : bool
Return values
boolpositiveInfinity()
public
static positiveInfinity() : self
Return values
selfzero()
public
static zero() : self