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

lastCall() public method

Get the last call.
public lastCall ( ) : Eloquent\Phony\Call\Call
return Eloquent\Phony\Call\Call The call.
    public function lastCall()
    {
        if ($this->callCount) {
            return $this->callVerifierFactory->fromCall($this->calls[$this->callCount - 1]);
        }
        throw new UndefinedCallException(0);
    }