1 | <?php |
||
9 | class Nth implements \Transphporm\Pseudo { |
||
10 | private $count = 0; |
||
11 | private $lastParentNode; |
||
12 | |||
13 | public function match($name, $args, \DomElement $element) { |
||
29 | |||
30 | //TODO: Abstract assertions throughout |
||
31 | private function assert($condition, $error) { |
||
34 | |||
35 | private function odd($num) { |
||
38 | |||
39 | private function even($num) { |
||
42 | } |
||
43 |