Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function createAll(): iterable |
||
41 | { |
||
42 | foreach ($this->resourceNameCollectionFactory->create() as $pageDataResourceClass) { |
||
43 | $reflectionClass = new \ReflectionClass($pageDataResourceClass); |
||
44 | if (!$reflectionClass->implementsInterface(PageDataInterface::class)) { |
||
45 | continue; |
||
46 | } |
||
47 | |||
48 | yield $this->pageDataMetadataFactory->create($pageDataResourceClass); |
||
|
|||
49 | } |
||
52 |