Dtionable
abstract class Dtionable
This class stores the simplest form of a a condition (lower and upper boundaries) and a result.
Properties
| protected mixed | $lower | Lower boundary |
|
| protected mixed | $upper | Upper boundary |
|
| protected mixed | $result | Result of the condition |
Methods
Instanciate a Dtionable with a lower boundary, upper boundary and the result when the criterion is between these boundaries.
Match a criterion with lower and upper boundaries.
Return the stored result
Get the instance as an array.
This method defines a serialization-friendly arbitrary representation of the object in form of an array.
This method is passed the restored array that was returned from __serialize(). It may then restore the properties of the object from that array as appropriate.
Details
at line 42
void
__construct(mixed $lower, mixed $upper, mixed $result)
Instanciate a Dtionable with a lower boundary, upper boundary and the result when the criterion is between these boundaries.
at line 56
abstract bool
match(mixed $criterion)
Match a criterion with lower and upper boundaries.
at line 63
mixed
result()
Return the stored result
at line 74
static Dtionable
fromArray(array $data)
Instanciate a Dtionable from an associative array
at line 84
values>
toArray()
Get the instance as an array.
at line 99
array
__serialize()
This method defines a serialization-friendly arbitrary representation of the object in form of an array.
at line 113
void
__unserialize(array $data)
This method is passed the restored array that was returned from __serialize(). It may then restore the properties of the object from that array as appropriate.