Files
vito/app/Traits/Enum.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

19 lines
272 B
PHP

<?php
namespace App\Traits;
use ReflectionClass;
trait Enum
{
/**
* @return array<string, mixed>
*/
public static function all(): array
{
$reflection = new ReflectionClass(self::class);
return $reflection->getConstants();
}
}