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