| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class XmlLibraryFactory extends BaseXmlLibraryFactory |
||
| 16 | { |
||
| 17 | protected function getLibraryDependencies(SimpleXMLElement $data): array |
||
| 18 | { |
||
| 19 | return array_merge( |
||
| 20 | parent::getLibraryDependencies($data), |
||
| 21 | [ |
||
| 22 | 'eras' => $this->buildClassInstanceFromNodeAttributes($data, '//books/era', 'era'), |
||
| 23 | ] |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function getBooksDependencies(SimpleXMLElement $data, SimpleXMLElement $book): array |
||
| 41 | ] |
||
| 42 | ), |
||
| 47 |