public function markInheritanceRoot() { if ($this->parentClasses) { throw MappingException::invalidInheritanceRoot($this->name, $this->parentClasses); } $this->inInheritanceHierachy = true; }