1 | <?php |
||
20 | class EnumNode extends ScalarNode |
||
21 | { |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $values = array(); |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param string $name |
||
31 | * @param NodeInterface|null $parent |
||
32 | * @param array $values |
||
33 | */ |
||
34 | public function __construct($name, NodeInterface $parent = null, array $values = array()) |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getValue() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | protected function finalizeValue($value) |
||
70 | } |
||
71 |