/** * Check if node has the static constructor defined * * @param \Includes\Decorator\DataStructure\Graph\Classes $node Node to check * * @return boolean */ protected function checkForStaticConstructor(\Includes\Decorator\DataStructure\Graph\Classes $node) { return $node->getReflection()->hasStaticConstructor; }
/** * Callback to collect patchers * * @param \Includes\Decorator\DataStructure\Graph\Classes $node Current node * * @return void */ public function checkClassForPatcherInterface(\Includes\Decorator\DataStructure\Graph\Classes $node) { if ($node->isImplements(static::INTERFACE_PATCHER) && !$node->getReflection()->isAbstract) { $this->patchers[] = $node; } }