/** * Checks whether current class outline is a subclass of class outline with given name * * @param string $name * @return boolean */ public function isSubclassOf($name) { return $this->parentClass && ($this->parentClass->getName() === $name || $this->parentClass->isSubclassOf($name)); }
public function __construct() { parent::__construct('Exception'); $this->addProperty(new PropertyOutline('message', new StringOutline())); $this->addProperty(new PropertyOutline('cause', $this, true)); }