src/Supplemental/GetConstantsTrait.php
private function getConstants(): array
    {
        if (empty(self::$constants)) {
            self::$constants = (new ReflectionClass($this))->getConstants();
        }

        return self::$constants;
    }
private function getConstants(): array
    {
        if (empty(self::$constants)) {
            self::$constants = (new ReflectionClass($this))->getConstants();
        }

        return self::$constants;
    }
private function getConstants ( ) : array { if ( empty ( self :: $ constants ) ) { self :: $ constants = ( new ReflectionClass ( $ this ) ) -> getConstants ( ) ; } return self :: $ constants ; }
Fills constants array if it is empty and returns it

@return array
Fills constants array if it is empty and returns it