/** * @param RokCommon_Annotation_ReflectionClass $class * * @return bool|RokCommon_Annotation_ReflectionProperty */ protected static function &getDefaultKeyProperty(RokCommon_Annotation_ReflectionClass &$class) { if (!isset(self::$cache[$class->getName()]['_default_key_'])) { self::$cache[$class->getName()]['_default_key_'] = false; if ($class->hasAnnotation('RokCommon_JSON_Annotation_JSONDefaultKey')) { $property = $class->getProperty($class->getAnnotation('RokCommon_JSON_Annotation_JSONDefaultKey')->value); self::$cache[$class->getName()]['_default_key_'] = $property; } } return self::$cache[$class->getName()]['_default_key_']; }