src/Stub/Answer/Builder/GeneratorAnswerBuilder.php
public function setsArgument($indexOrValue = null, $value = null): self
    {
        if (func_num_args() > 1) {
            $index = $indexOrValue;
        } else {
            $index = 0;
            $value = $indexOrValue;
        }

        if ($value instanceof InstanceHandle) {
            $value = $value->get();
        }

        return $this->callsWith(
            function ($arguments) use ($index, $value) {
                $arguments->set($index, $value);
            },
            [],
            false,
            true,
            false
        );
    }
public function setsArgument($indexOrValue = null, $value = null): self
    {
        if (func_num_args() > 1) {
            $index = $indexOrValue;
        } else {
            $index = 0;
            $value = $indexOrValue;
        }

        if ($value instanceof InstanceHandle) {
            $value = $value->get();
        }

        return $this->callsWith(
            function ($arguments) use ($index, $value) {
                $arguments->set($index, $value);
            },
            [],
            false,
            true,
            false
        );
    }
public function setsArgument ( $ indexOrValue = null , $ value = null ) : self { if ( func_num_args ( ) > 1 ) { $ index = $ indexOrValue ; } else { $ index = 0 ; $ value = $ indexOrValue ; } if ( $ value instanceof InstanceHandle ) { $ value = $ value -> get ( ) ; } return $ this -> callsWith ( function ( $ arguments ) use ( $ index , $ value ) { $ arguments -> set ( $ index , $ value ) ; } , [ ] , false , true , false ) ; }
Set the value of an argument passed by reference as part of the answer.

If called with no arguments, sets the first argument to null.

If called with one argument, sets the first argument to $indexOrValue.

If called with two arguments, sets the argument at $indexOrValue to
$value.

@param mixed $indexOrValue The index, or value if no index is specified.
@param mixed $value        The value.

@return $this This builder.
Set the value of an argument passed by reference as part of the answer .