Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * 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;
     }
 }