mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
API Feature (#334)
This commit is contained in:
13
app/Traits/Enum.php
Normal file
13
app/Traits/Enum.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
trait Enum
|
||||
{
|
||||
public static function all(): array
|
||||
{
|
||||
$reflection = new \ReflectionClass(self::class);
|
||||
|
||||
return $reflection->getConstants();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user