public lastEvent ( ) : Eloquent\Phony\Event\Event | ||
return | Eloquent\Phony\Event\Event | The event. |
public function lastEvent()
{
if ($count = count($this->calls)) {
return $this->calls[$count - 1];
}
throw new UndefinedEventException(0);
}