| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function getBooksDependencies(SimpleXMLElement $data, SimpleXMLElement $book): array |
||
| 28 | { |
||
| 29 | $eras = $book->xpath('parent::era'); |
||
| 30 | Assert::isIterable($eras); |
||
| 31 | $era = reset($eras); |
||
| 32 | Assert::isInstanceOf($era, SimpleXMLElement::class); |
||
| 33 | |||
| 34 | return array_merge( |
||
| 35 | parent::getBooksDependencies($data, $book), |
||
| 36 | [ |
||
| 37 | 'chronologicalMarker' => new $this->classes['chronologicalMarker']( |
||
| 38 | [ |
||
| 39 | 'timeStart' => (string) $book->{'time'}, |
||
| 40 | 'era' => new $this->classes['era']($this->getSimpleXmlElementAttributesAsArray($era)), |
||
| 41 | ] |
||
| 47 |