1 | <?php namespace BuildR\Utils\Enumeration; |
||
8 | class EnumerationBase implements StringConvertibleInterface, Countable { |
||
|
|||
9 | |||
10 | public $value; |
||
11 | |||
12 | private static $cache = []; |
||
13 | |||
14 | public function __construct($value) { |
||
21 | |||
22 | public function isValid($value) { |
||
25 | |||
26 | public function getValue() { |
||
29 | |||
30 | public static function toArray() { |
||
40 | |||
41 | public static function getKeys() { |
||
44 | |||
45 | public static function isValidKey($key) { |
||
52 | |||
53 | public static function size() { |
||
56 | |||
57 | public static function __callStatic($name, $arguments) { |
||
71 | // ========================================== |
||
72 | // StringConvertibleInterface implementation |
||
73 | |||
74 | // ========================================== |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function __toString() { |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function toString() { |
||
89 | |||
90 | } |
||
91 |