コード例 #1
0
 /**
  * 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));
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct('Exception');
     $this->addProperty(new PropertyOutline('message', new StringOutline()));
     $this->addProperty(new PropertyOutline('cause', $this, true));
 }