| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface |
||
| 20 | { |
||
| 21 | if ($element->nodeName !== 'easter') { |
||
| 22 | return null; |
||
| 23 | } |
||
| 24 | |||
| 25 | return new Easter( |
||
| 26 | $element->textContent, |
||
| 27 | $element->getAttribute('free') === "true", |
||
| 28 | (int) $element->getAttribute('offset') |
||
| 29 | ); |
||
| 32 |