Eloquent\Phony\Verification\AbstractCardinalityVerifierEventCollection::lastEvent PHP Method

lastEvent() public method

Get the last event.
public lastEvent ( ) : Eloquent\Phony\Event\Event
return Eloquent\Phony\Event\Event The event.
    public function lastEvent()
    {
        if ($this->eventCount) {
            return $this->events[$this->eventCount - 1];
        }
        throw new UndefinedEventException(0);
    }