Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function read($class, $type) |
||
18 | { |
||
19 | $class = new \ReflectionClass($class); |
||
20 | |||
21 | $annots = []; |
||
22 | foreach ($class->getProperties() as $property) { |
||
23 | $annot = $this->annotReader->getPropertyAnnotation($property, $type); |
||
24 | if (null === $annot) { |
||
25 | continue; |
||
26 | } |
||
27 | |||
28 | $annots[$property->getName()] = $annot; |
||
29 | } |
||
30 | |||
31 | return $annots; |
||
32 | } |
||
33 | } |
||
34 |