/** * @param LeafInterface $child * * @return $this */ public function append(LeafInterface $child) { $this->parent->insertAfter($this, $child); return $this; }