public static function &getInstance() { if (self::$_instance == null) { self::$_instance = new __AnnotationParser(); } return self::$_instance; }
protected function _exposeEventHandlerMethods() { if ($this->_event_handler != null) { $event_handler_class = get_class($this->_event_handler); $annotations_collection = __AnnotationParser::getInstance()->getAnnotations($event_handler_class); $annotations = $annotations_collection->toArray(); foreach ($annotations as $annotation) { switch (strtoupper($annotation->getName())) { case 'REMOTESERVICE': $this->_generateRemoteServiceCode($annotation->getMethod(), $annotation->getArguments()); break; default: break; } } } }