Kahlan\Spec\Mock\Patcher::process PHP Method

process() public method

The JIT patcher.
public process ( NodeDef $node, string $path = null ) : NodeDef
$node NodeDef The node to patch.
$path string The file path of the source code.
return NodeDef The patched node.
    public function process($node, $path = null)
    {
        $args = func_get_args();
        $self = isset($this) ? $this : get_called_class();
        if ($pointcut = Pointcut::before(__METHOD__, $self, $args)) {
            return $pointcut($args, $self);
        }
        return $node;
    }