php-kilo/src/Traits/ConstList.php

12 lines
218 B
PHP
Raw Normal View History

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