src/Stub/StubData.php
public function returnsArgument(int $index = 0): Stub
    {
        return $this->doesWith(
            function ($arguments) use ($index) {
                return $arguments->get($index);
            },
            [],
            false,
            true,
            false
        );
    }
public function returnsArgument(int $index = 0): Stub
    {
        return $this->doesWith(
            function ($arguments) use ($index) {
                return $arguments->get($index);
            },
            [],
            false,
            true,
            false
        );
    }
public function returnsArgument ( int $ index = 0 ) : Stub { return $ this -> doesWith ( function ( $ arguments ) use ( $ index ) { return $ arguments -> get ( $ index ) ; } , [ ] , false , true , false ) ; }
Add an answer that returns an argument.

Negative indices are offset from the end of the list. That is, `-1`
indicates the last element, and `-2` indicates the second last element.

@param int $index The argument index.

@return $this This stub.
Add an answer that returns an argument .