1 | <?php |
||
7 | abstract class NamedEnum extends Enum |
||
8 | { |
||
9 | /** @var array */ |
||
10 | protected static $names = []; |
||
11 | |||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | public function getName() |
||
19 | |||
20 | /** |
||
21 | * @param string $name |
||
22 | * |
||
23 | * @return NamedEnum |
||
24 | * @throws \InvalidArgumentException when invalid currency name given |
||
25 | */ |
||
26 | public static function fromName($name) |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public static function getNames() |
||
44 | } |
||
45 |