src/main/php/FunctionProxy.php
protected function handleFunctionCall(array $arguments)
    {
        $invocation = $this->invocations->recordCall($arguments);
        if (null !== $this->callMap && $this->callMap->hasResultFor('function', $invocation)) {
            return $this->callMap->resultFor('function', $arguments, $invocation);
        }

        if ($this->parentCallsAllowed) {
            $originalFunction = $this->invocations->name();
            return $originalFunction(...$arguments);
        }

        return null;
    }
protected function handleFunctionCall(array $arguments)
    {
        $invocation = $this->invocations->recordCall($arguments);
        if (null !== $this->callMap && $this->callMap->hasResultFor('function', $invocation)) {
            return $this->callMap->resultFor('function', $arguments, $invocation);
        }

        if ($this->parentCallsAllowed) {
            $originalFunction = $this->invocations->name();
            return $originalFunction(...$arguments);
        }

        return null;
    }
protected function handleFunctionCall ( array $ arguments ) { $ invocation = $ this -> invocations -> recordCall ( $ arguments ) ; if ( null !== $ this -> callMap && $ this -> callMap -> hasResultFor ( 'function' , $ invocation ) ) { return $ this -> callMap -> resultFor ( 'function' , $ arguments , $ invocation ) ; } if ( $ this -> parentCallsAllowed ) { $ originalFunction = $ this -> invocations -> name ( ) ; return $ originalFunction ( ... $ arguments ) ; } return null ; }
handles actual function calls

@param   mixed[]  $arguments  list of given arguments for function
@return  mixed
handles actual function calls