src/Call/Arguments.php
public function get(int $index = 0)
    {
        if (!$this->normalizeIndex($this->count, $index, $normalized)) {
            throw new UndefinedArgumentException($index);
        }

        return $this->arguments[$normalized];
    }
public function get(int $index = 0)
    {
        if (!$this->normalizeIndex($this->count, $index, $normalized)) {
            throw new UndefinedArgumentException($index);
        }

        return $this->arguments[$normalized];
    }
public function get ( int $ index = 0 ) { if ( ! $ this -> normalizeIndex ( $ this -> count , $ index , $ normalized ) ) { throw new UndefinedArgumentException ( $ index ) ; } return $ this -> arguments [ $ normalized ] ; }
Get an argument by index.

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 index.

@return mixed                      The argument.
@throws UndefinedArgumentException If the requested argument is undefined.
Get an argument by index .