public static function getConstants()
    {
        if (empty(self::$_constantsCache)) {
            $reflectionClass = new \ReflectionClass(get_called_class());
            self::$_constantsCache = $reflectionClass->getConstants();
        }
        return self::$_constantsCache;
    }