public static function getConstants()
    {
        if (empty(self::$_constantsCache)) {
            $reflectionClass = new \ReflectionClass(get_called_class());
            self::$_constantsCache = $reflectionClass->getConstants();
        }
        return self::$_constantsCache;
    }
public static function getConstants()
    {
        if (empty(self::$_constantsCache)) {
            $reflectionClass = new \ReflectionClass(get_called_class());
            self::$_constantsCache = $reflectionClass->getConstants();
        }
        return self::$_constantsCache;
    }
public static function getConstants ( ) { if ( empty ( self :: $ _constantsCache ) ) { $ reflectionClass = new \ ReflectionClass ( get_called_class ( ) ) ; self :: $ _constantsCache = $ reflectionClass -> getConstants ( ) ; } return self :: $ _constantsCache ; }
Get and cache all constants of for this enum.

@return array
Get and cache all constants of for this enum .