Eloquent\Phony\Spy\SpyData::eventAt PHP Method

eventAt() public method

Negative indices are offset from the end of the list. That is, -1 indicates the last element, and -2 indicates the second last element.
public eventAt ( integer $index ) : Eloquent\Phony\Event\Event
$index integer The index.
return Eloquent\Phony\Event\Event The event.
    public function eventAt($index = 0)
    {
        if (!$this->normalizeIndex(count($this->calls), $index, $normalized)) {
            throw new UndefinedEventException($index);
        }
        return $this->calls[$normalized];
    }