Skip to content

Commit 4478475

Browse files
committed
EnumStatic renamed to EnumAbstract
1 parent 877018e commit 4478475

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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');
3434
convert enum value to object:
3535
```php
3636
assert(CountryEnum::get('usa') === CountryEnum::USA());
37-
```
37+
```

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Utilitte\Enum;
44

5-
abstract class Enum extends EnumStatic
5+
abstract class Enum extends EnumAbstract
66
{
77

88
private string $value;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @internal
1010
*/
11-
abstract class EnumStatic
11+
abstract class EnumAbstract
1212
{
1313

1414
/** @var EnumStorage[] */

0 commit comments

Comments
 (0)