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