Eloquent\Phony\Stub\Answer\CallRequest::__construct PHP Метод

__construct() публичный Метод

Construct a call request.
public __construct ( callable $callback, Arguments $arguments, boolean $prefixSelf, boolean $suffixArgumentsObject, boolean $suffixArguments )
$callback callable The callback.
$arguments Eloquent\Phony\Call\Arguments The arguments.
$prefixSelf boolean True if the self value should be prefixed.
$suffixArgumentsObject boolean True if the arguments object should be appended.
$suffixArguments boolean True if the arguments should be appended individually.
    public function __construct($callback, Arguments $arguments, $prefixSelf, $suffixArgumentsObject, $suffixArguments)
    {
        $this->callback = $callback;
        $this->arguments = $arguments;
        $this->prefixSelf = $prefixSelf;
        $this->suffixArgumentsObject = $suffixArgumentsObject;
        $this->suffixArguments = $suffixArguments;
        foreach ($this->arguments->all() as $index => $argument) {
            if ($argument instanceof InstanceHandle) {
                $this->arguments->set($index, $argument->get());
            }
        }
    }