Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __invoke(): array |
||
33 | { |
||
34 | $metadataCollection = $this->getMetadataCollection(); |
||
35 | |||
36 | if (count($metadataCollection) === 0) { |
||
37 | return []; |
||
38 | } |
||
39 | |||
40 | $this->getHydratorFactory()->generateHydratorClasses( |
||
41 | $metadataCollection, |
||
42 | $this->ensureDirectory($this->getHydratorDir()) |
||
43 | ); |
||
44 | |||
45 | return array_map(function ($metadata) { |
||
46 | return $metadata->name; |
||
47 | }, $metadataCollection); |
||
48 | } |
||
65 |