php-kilo/src/Enum/ConstList.php

12 lines
216 B
PHP
Raw Normal View History

2019-11-19 13:48:12 -05:00
<?php declare(strict_types=1);
namespace Aviat\Kilo\Enum;
use ReflectionClass;
trait ConstList {
public static function getConstList(): array
{
return (new ReflectionClass(static::class))->getConstants();
}
}