public function accept(Visitor $visitor) { $visitor->visit($this); }
function accept(Visitor $visitor) { return $visitor->visit($this); }
function accept(Visitor $visitorIn) { $visitorIn->visit($this); }
public function visit(Visitor $visitor, $depth = 0) { $visitor->visit($this, $depth); foreach ($this as $key => $values) { if (is_array($values)) { foreach ($this as $key => $value) { $value->visit($visitor, $depth + 1); } } else { $values->visit($visitor, $depth + 1); } } }