1 | <?php |
||
19 | abstract class AbstractAnnotationReader implements ReaderInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var DoctrineAnnotationsReaderInterface |
||
23 | */ |
||
24 | protected $reader; |
||
25 | |||
26 | /** |
||
27 | * Кеш загруженных метаданных |
||
28 | * |
||
29 | * @var MetadataInterface[] |
||
30 | */ |
||
31 | protected $classAnnotations = []; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @throws Exception\AnnotationReaderException |
||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Иницилазия |
||
44 | * |
||
45 | * @return void |
||
46 | * @throws Exception\AnnotationReaderException |
||
47 | */ |
||
48 | protected function init() |
||
58 | |||
59 | /** |
||
60 | * @return DoctrineAnnotationsReaderInterface |
||
61 | */ |
||
62 | public function getReader() |
||
72 | |||
73 | /** |
||
74 | * @param DoctrineAnnotationsReaderInterface $reader |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setReader(DoctrineAnnotationsReaderInterface $reader) |
||
84 | } |
||
85 |