Lines Matching refs:nodes
14 protected $nodes = []; variable in DOMWrap\\Collections\\NodeCollection
17 * @param iterable $nodes
19 public function __construct(iterable $nodes = null) { argument
20 if (!is_iterable($nodes)) {
21 $nodes = [];
24 foreach ($nodes as $node) {
25 $this->nodes[] = $node;
35 return count($this->nodes);
46 return isset($this->nodes[$offset]);
58 return isset($this->nodes[$offset]) ? $this->nodes[$offset] : null;
69 $this->nodes[] = $value;
71 $this->nodes[$offset] = $value;
81 unset($this->nodes[$offset]);
99 $nodes = [];
102 $nodes = $this->current()->childNodes;
105 return new static($nodes);
129 return current($this->nodes);
140 return key($this->nodes);
151 return next($this->nodes);
162 return reset($this->nodes);
172 return key($this->nodes) !== null;