phpmock\spy\Invocation::__construct PHP Method

__construct() public method

Sets the arguments and return value
public __construct ( array $arguments, mixed $return, Exception $exception = null )
$arguments array Function's arguments
$return mixed Function's return value
$exception Exception The exception thrown by the function
    public function __construct(array $arguments, $return, \Exception $exception = null)
    {
        $this->arguments = $arguments;
        $this->return = $return;
        $this->exception = $exception;
    }