| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function loadMetadataForClass(\ReflectionClass $class) |
||
| 31 | { |
||
| 32 | $annotations = $this->reader->getClassAnnotations($class); |
||
| 33 | |||
| 34 | $grids = []; |
||
| 35 | foreach ($annotations as $annotation) { |
||
| 36 | if ($annotation instanceof Grid) { |
||
| 37 | $grids[$annotation->name] = $this->getGridMetadata($annotation); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return new ClassMetadata($class->getName(), $grids); |
||
|
|
|||
| 42 | } |
||
| 43 | |||
| 73 |