Kahlan\Jit\Patcher\Pointcut::_processMethods PHP Метод

_processMethods() защищенный Метод

Helper for Pointcut::process().
protected _processMethods ( array $parent )
$parent array The node instance tor process.
    protected function _processMethods($parent)
    {
        foreach ($parent->tree as $child) {
            if (!$child->processable) {
                continue;
            }
            $process = $child->type === 'function' && $child->isMethod && !isset($child->visibility['abstract']);
            if ($process) {
                $code = $this->_classes['node'];
                $before = new $code($this->_before($child->isGenerator), 'code');
                $before->parent = $child;
                $before->function = $child;
                $before->processable = false;
                $before->namespace = $child->namespace;
                array_unshift($child->tree, $before);
            }
        }
    }