/** * {@inheritDoc} */ public function isAbstract() { if ($this->classLikeNode instanceof Class_ && $this->classLikeNode->isAbstract()) { return true; } elseif ($this->isInterface() && !empty($this->getMethods())) { return true; } elseif ($this->isTrait()) { return PHP_VERSION_ID < 70000 ? true : false; } return false; }
/** * Is this class an abstract class. * * @return bool */ public function isAbstract() { return $this->node instanceof ClassNode && $this->node->isAbstract(); }