| 1 | <?php |
||
| 12 | class EnumRegistry implements EnumRegistryInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var EnumInterface[] |
||
| 16 | */ |
||
| 17 | private $enums; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @inheritdoc |
||
| 21 | */ |
||
| 22 | 3 | public function add(EnumInterface $enum) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | 2 | public function get($name) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritdoc |
||
| 45 | */ |
||
| 46 | 3 | public function has($name) |
|
| 50 | } |
||
| 51 |