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