/** * * @param Reflector $reflection * @return Customweb_Annotation_Cache_Annotation[] */ private function parse(Reflector $reflection) { $key = Customweb_Annotation_Util::createName($reflection); if (!isset(self::$cache[$key])) { $data = Customweb_Annotation_Cache_Reader::getAnnotationsByTarget($reflection); self::$cache[$key] = $data; } return self::$cache[$key]; }
public static function getAnnotationsByTarget($target) { $key = Customweb_Annotation_Util::createName($target); $data = self::read(); if (isset($data[$key])) { return $data[$key]; } else { return array(); } }