1 | <?php |
||
25 | class EnumValuesAsArrayTwigExtension extends AbstractEnumTwigExtension |
||
26 | { |
||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function getFunctions(): array |
||
37 | |||
38 | /** |
||
39 | * @param string $enumType |
||
40 | * |
||
41 | * @throws EnumTypeIsNotRegisteredException |
||
42 | * @throws NoRegisteredEnumTypesException |
||
43 | * |
||
44 | * @return string[] |
||
45 | */ |
||
46 | public function getEnumValuesAsArray(string $enumType): array |
||
50 | |||
51 | /** |
||
52 | * @param string $enumType |
||
53 | * |
||
54 | * @throws EnumTypeIsNotRegisteredException |
||
55 | * @throws NoRegisteredEnumTypesException |
||
56 | * |
||
57 | * @return string[] |
||
58 | */ |
||
59 | public function getReadableEnumValuesAsArray(string $enumType): array |
||
63 | |||
64 | /** |
||
65 | * @param string $enumType |
||
66 | * @param string $staticMethodName |
||
67 | * |
||
68 | * @throws LogicException |
||
69 | * @throws EnumTypeIsNotRegisteredException |
||
70 | * @throws NoRegisteredEnumTypesException |
||
71 | * |
||
72 | * @return string[] |
||
73 | */ |
||
74 | private function callEnumTypeStaticMethod(string $enumType, string $staticMethodName): array |
||
90 | } |
||
91 |