![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Helper to make intervals. More...
Public Member Functions | |
| __construct ($lower_bound, $upper_bound=null) | |
| Constructs new interval helper. | |
| get_lower_bound () | |
| Retrieves interval lower bound. | |
| exclude_lower_bound () | |
| Excludes lower bound from the interval. | |
| is_lower_bound_excluded () | |
| Checks wether lower bound is excluded or not. | |
| get_upper_bound () | |
| Retrieves interval upper bound. | |
| exclude_upper_bound () | |
| Excludes upper bound from the interval. | |
| is_upper_bound_excluded () | |
| Checks wether upper bound is excluded or not. | |
| __toString () | |
| Serialize this instance in string format. | |
Static Public Member Functions | |
| static | create ($lower_bound=null, $upper_bound=null) |
| Creates new interval helper. | |
| static | parse ($value) |
| Creates new interval helper from string. | |
Helper to make intervals.
| __construct | ( | $lower_bound, | |
$upper_bound = null |
|||
| ) |
Constructs new interval helper.
Initialize new AfsInterval with at least one interval bound.
| $lower_bound | [in] Lower bound of the interval. |
| $upper_bound | [in] Upper bound of the interval (default: null). |
| AfsIntervalBoundException | when both boundaries are null. |
| __toString | ( | ) |
Serialize this instance in string format.
Returned value can be used to recreate new interval using AfsInterval::parse method.
|
static |
Creates new interval helper.
Initialize new AfsInterval with at least one interval bound.
| $lower_bound | [in] Lower bound of the interval (default: null). |
| $upper_bound | [in] Upper bound of the interval (default: null). |
| AfsIntervalBoundException | when both boundaries are null. |
| exclude_lower_bound | ( | ) |
Excludes lower bound from the interval.
By default, both boundaries are included.
| exclude_upper_bound | ( | ) |
Excludes upper bound from the interval.
By default, both boundaries are included.
| get_lower_bound | ( | ) |
Retrieves interval lower bound.
| get_upper_bound | ( | ) |
Retrieves interval upper bound.
| is_lower_bound_excluded | ( | ) |
Checks wether lower bound is excluded or not.
True when lower bound is excluded from the interval, false otherwise. | is_upper_bound_excluded | ( | ) |
Checks wether upper bound is excluded or not.
True when upper bound is excluded from the interval, false otherwise.
|
static |
Creates new interval helper from string.
| $value | [in] String value to parse in order to create new AfsInterval instance. |
1.8.1.2