mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
14 lines
199 B
PHP
14 lines
199 B
PHP
<?php
|
|
|
|
namespace App\Traits;
|
|
|
|
trait Enum
|
|
{
|
|
public static function all(): array
|
|
{
|
|
$reflection = new \ReflectionClass(self::class);
|
|
|
|
return $reflection->getConstants();
|
|
}
|
|
}
|