1 | <?php |
||
38 | class AnnotationReaderResult implements IteratorAggregate { |
||
39 | |||
40 | /** @var string */ |
||
41 | private $className; |
||
42 | |||
43 | /** @var array */ |
||
44 | private $annotations; |
||
45 | |||
46 | /** |
||
47 | * Class constructor. |
||
48 | * @param string $className |
||
49 | */ |
||
50 | 1 | public function __construct($className) { |
|
59 | |||
60 | /** |
||
61 | * Returns the target class name. |
||
62 | * @return string the class name |
||
63 | */ |
||
64 | 1 | public function getClassName() { |
|
67 | |||
68 | /** |
||
69 | * Adds an annotation to the properly container matching the collection type. |
||
70 | * @param \Brickoo\Component\Annotation\Annotation $annotation |
||
71 | * @throws \Brickoo\Component\Annotation\Exception\InvalidTargetException |
||
72 | * @return \Brickoo\Component\Annotation\AnnotationReaderResult |
||
73 | */ |
||
74 | 2 | public function addAnnotation(Annotation $annotation) { |
|
84 | |||
85 | /** |
||
86 | * Returns an array iterator containing all annotations. |
||
87 | * @return \ArrayIterator containing all annotations |
||
88 | */ |
||
89 | 1 | public function getIterator() { |
|
96 | |||
97 | /** |
||
98 | * Returns an annotations iterator matching the target. |
||
99 | * @param integer $target |
||
100 | * @throws \InvalidArgumentException |
||
101 | * @throws \Brickoo\Component\Annotation\Exception\InvalidTargetException |
||
102 | * @return \ArrayIterator |
||
103 | */ |
||
104 | 2 | public function getAnnotationsByTarget($target) { |
|
113 | |||
114 | /** |
||
115 | * Checks if the target is valid. |
||
116 | * @param integer $target |
||
117 | * @return boolean check result |
||
118 | */ |
||
119 | 5 | private function isTargetValid($target) { |
|
122 | |||
123 | } |
||
124 |