private static function getConstants() { if (self::$constCache === NULL) { $reflect = new ReflectionClass(get_called_class()); self::$constCache = $reflect->getConstants(); } return self::$constCache; }