| 1 | <?php |
||
| 10 | class ConfigurableEnum implements EnumInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $choices; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $name |
||
| 24 | * @param array $choices |
||
| 25 | */ |
||
| 26 | public function __construct(string $name, array $choices) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function getName(): string |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | public function getChoices(): array |
||
| 47 | } |
||
| 48 |