3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Code\Annotation\Parser
;
12 use Zend\EventManager\EventInterface
;
14 interface ParserInterface
17 * Respond to the "createAnnotation" event
19 * @param EventInterface $e
20 * @return false|\stdClass
22 public function onCreateAnnotation(EventInterface
$e);
25 * Register an annotation this parser will accept
27 * @param mixed $annotation
30 public function registerAnnotation($annotation);
33 * Register multiple annotations this parser will accept
35 * @param array|\Traversable $annotations
38 public function registerAnnotations($annotations);