Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function current() |
||
28 | { |
||
29 | if (!isset($this->qp)) { |
||
30 | $this->qp = QueryPath::with(parent::current(), NULL, $this->options); |
||
31 | } else { |
||
32 | $splos = new \SplObjectStorage(); |
||
33 | $splos->attach(parent::current()); |
||
34 | $this->qp->setMatches($splos); |
||
35 | } |
||
36 | |||
37 | return $this->qp; |
||
38 | } |
||
40 |