Public Member Functions | ||||
__construct ($min=null, $max=null) | ||||
getMin () | ||||
setMin ($min=null) | ||||
| ||||
getMax () | ||||
setMax ($max=null) | ||||
| ||||
toString ($from= 'от', $to= 'до') | ||||
atavism wrt BC | ||||
divide ($factor, $precision=null) | ||||
| ||||
multiply ($multiplier) | ||||
| ||||
equals (Range $range) | ||||
intersects (Range $range) | ||||
isEmpty () | ||||
Static Public Member Functions | ||||
static | create ($min=null, $max=null) | |||
| ||||
static | lazyCreate ($min=null, $max=null) | |||
| ||||
Private Attributes | ||||
$min = null | ||||
$max = null |
Definition at line 18 of file Range.class.php.
Range::__construct | ( | $ | min = null , |
|
$ | max = null | |||
) |
static Range::create | ( | $ | min = null , |
|
$ | max = null | |||
) | [static] |
static Range::lazyCreate | ( | $ | min = null , |
|
$ | max = null | |||
) | [static] |
Definition at line 46 of file Range.class.php.
Referenced by PrimitiveRange::importMarried(), and PrimitiveRange::importSingle().
Range::getMin | ( | ) |
Definition at line 54 of file Range.class.php.
Referenced by IntegerSet::contains(), equals(), and intersects().
Range::setMin | ( | $ | min = null |
) |
WrongArgumentException |
Definition at line 63 of file Range.class.php.
References $min.
Range::getMax | ( | ) |
Definition at line 80 of file Range.class.php.
Referenced by IntegerSet::contains(), equals(), and intersects().
Range::setMax | ( | $ | max = null |
) |
WrongArgumentException |
Definition at line 89 of file Range.class.php.
References $max.
Range::toString | ( | $ | from = 'от' , |
|
$ | to = 'до' | |||
) |
Range::divide | ( | $ | factor, | |
$ | precision = null | |||
) |
Range::multiply | ( | $ | multiplier | ) |
Range::equals | ( | Range $ | range | ) |
Definition at line 148 of file Range.class.php.
References getMax(), and getMin().
Range::intersects | ( | Range $ | range | ) |
Definition at line 154 of file Range.class.php.
References getMax(), and getMin().
Range::isEmpty | ( | ) |
Definition at line 160 of file Range.class.php.
Range::$min = null [private] |
Definition at line 20 of file Range.class.php.
Referenced by __construct(), create(), IntegerSet::create(), lazyCreate(), and setMin().
Range::$max = null [private] |
Definition at line 21 of file Range.class.php.
Referenced by __construct(), create(), IntegerSet::create(), lazyCreate(), and setMax().