Skip to content

Commit

Permalink
- setted public dynamic methods
Browse files Browse the repository at this point in the history
  • Loading branch information
trippo committed Jun 20, 2022
1 parent b2adb2c commit 1257fa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified branding/logo.afdesign
Binary file not shown.
6 changes: 3 additions & 3 deletions src/Traits/EnumProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait EnumProperties
*
* @param null|array<self> $cases
*/
protected static function dynamicList(string $method, ?array $cases = null, ?string $lang = null): array
public static function dynamicList(string $method, ?array $cases = null, ?string $lang = null): array
{
$cases ??= static::cases();

Expand All @@ -29,7 +29,7 @@ protected static function dynamicList(string $method, ?array $cases = null, ?str
/**
* Return as associative array [$key => $method() value]n on Backed Enum.
*/
protected static function dynamicByKey(string $key, string $method, ?array $cases = null, ?string $lang = null): array
public static function dynamicByKey(string $key, string $method, ?array $cases = null, ?string $lang = null): array
{
if ($key === 'value' && ! is_subclass_of(static::class, BackedEnum::class)) {
throw new NotBackedEnum(static::class);
Expand All @@ -54,7 +54,7 @@ protected static function dynamicByKey(string $key, string $method, ?array $case
* Return as associative array [name => $method() value] on Pure Enum
* Return as associative array [value => $method() value] on Backed Enum.
*/
protected static function dynamicAsSelect(string $method, ?array $cases = null, ?string $lang = null): array
public static function dynamicAsSelect(string $method, ?array $cases = null, ?string $lang = null): array
{
if (is_subclass_of(static::class, BackedEnum::class)) {
return self::dynamicByKey('value', $method, $cases, $lang);
Expand Down

0 comments on commit 1257fa8

Please sign in to comment.