public static function invalidInheritanceRoot($className, $parents) { return new self("Class '" . $className . "' cannot be the root of an inheritance hierachy, because it has " . "parent classes: " . implode(", ", $parents)); }
public function markInheritanceRoot() { if ($this->parentClasses) { throw MappingException::invalidInheritanceRoot($this->name, $this->parentClasses); } $this->inInheritanceHierachy = true; }