1 | <?php |
||
6 | class EnumerationType implements Type { |
||
7 | |||
8 | private $options; |
||
9 | |||
10 | private $optionType; |
||
11 | |||
12 | /** |
||
13 | * @param array $options |
||
14 | * @param Type $optionType |
||
15 | */ |
||
16 | public function __construct(array $options, Type $optionType) { |
||
20 | |||
21 | /** |
||
22 | * @return array key/value pairs |
||
23 | */ |
||
24 | public function getOptions() { |
||
27 | |||
28 | public function is($value) { |
||
31 | |||
32 | public function __toString() { |
||
35 | |||
36 | /** |
||
37 | * @return Type |
||
38 | */ |
||
39 | public function getOptionType() { |
||
42 | } |