public function __get($name) { switch ($name) { case 'firstElementChild': return $this->getFirstElementChild(); case 'lastElementChild': return $this->getLastElementChild(); } // @codeCoverageIgnoreStart return $this->getParentProperty($name); }