Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | public function getData(\DomElement $element = null, $type = 'data') { |
||
33 | while ($element) { |
||
34 | if (isset($this->elementMap[$element]) && isset($this->elementMap[$element][$type])) return $this->elementMap[$element][$type]; |
||
35 | $element = $element->parentNode; |
||
36 | } |
||
37 | return $this->data; |
||
38 | } |
||
39 | } |