Eloquent\Phony\Event\EventSequence::firstEvent PHP Method

firstEvent() public method

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