/** * Accept visitor. * * @param IdmlVisitor $visitor */ public function accept(IdmlVisitor $visitor, $depth = 0) { // Group is also visitable just in case it can have a style. $visitor->visitTable($this, $depth); foreach ($this->childrenElements as $child) { $child->accept($visitor, $depth + 1); } $visitor->visitTableEnd($this, $depth); }