File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Create enum class
88 * @method static self ENGLAND()
99 * @method static self USA()
1010 */
11- class CountryEnum
11+ class CountryEnum extends Enum
1212{
1313 protected static function getEnums(): array
1414 {
@@ -34,4 +34,4 @@ assert(country(CountryEnum::USA()) === 'usa');
3434convert enum value to object:
3535``` php
3636assert(CountryEnum::get('usa') === CountryEnum::USA());
37- ```
37+ ```
Original file line number Diff line number Diff line change 22
33namespace Utilitte \Enum ;
44
5- abstract class Enum extends EnumStatic
5+ abstract class Enum extends EnumAbstract
66{
77
88 private string $ value ;
Original file line number Diff line number Diff line change 88/**
99 * @internal
1010 */
11- abstract class EnumStatic
11+ abstract class EnumAbstract
1212{
1313
1414 /** @var EnumStorage[] */
You can’t perform that action at this time.
0 commit comments