Method | Description | |
---|---|---|
addIterableEvent ( Eloquent\Phony\Call\Event\IterableEvent $iterableEvent ) | Add an iterable event. | |
argument ( integer $index ) : mixed | Get an argument by index. | |
arguments ( ) : |
Get the arguments. | |
callback ( ) : callable | Get the callback. | |
calledEvent ( ) : |
Get the 'called' event. | |
endEvent ( ) : Eloquent\Phony\Call\Event\EndEvent | null | Get the end event. | |
endTime ( ) : float | null | Get the time at which the call completed. | |
exception ( ) : Exceptio\Exception | Erro\Error | Get the thrown exception. | |
generatorException ( ) : Exceptio\Exception | Erro\Error | Get the exception thrown from the generator. | |
generatorResponse ( ) : tuple |
Get the response from the generator. | |
generatorReturnValue ( ) : mixed | Get the value returned from the generator. | |
hasCompleted ( ) : boolean | Returns true if this call has completed. | |
hasResponded ( ) : boolean | Returns true if this call has responded. | |
index ( ) : integer | Get the call index. | |
isGenerator ( ) : boolean | Returns true if this call has responded with a generator. | |
isIterable ( ) : boolean | Returns true if this call has responded with an iterable. | |
iterableEvents ( ) : array |
Get the iterable events. | |
response ( ) : tuple |
Get the response. | |
responseEvent ( ) : Eloquent\Phony\Call\Event\ResponseEvent | null | Get the response event. | |
responseTime ( ) : float | null | Get the time at which the call responded. | |
returnValue ( ) : mixed | Get the returned value. | |
setEndEvent ( Eloquent\Phony\Call\Event\EndEvent $endEvent ) | Set the end event. | |
setResponseEvent ( Eloquent\Phony\Call\Event\ResponseEvent $responseEvent ) | Set the response event. |
public addIterableEvent ( Eloquent\Phony\Call\Event\IterableEvent $iterableEvent ) | ||
$iterableEvent | Eloquent\Phony\Call\Event\IterableEvent | The iterable event. |
public calledEvent ( ) : |
||
return | The 'called' event. |
public exception ( ) : Exceptio\Exception | Erro\Error | ||
return | Exceptio\Exception | Erro\Error | The thrown exception. |
public generatorException ( ) : Exceptio\Exception | Erro\Error | ||
return | Exceptio\Exception | Erro\Error | The thrown exception. |
public generatorResponse ( ) : tuple |
||
return | tuple |
public generatorReturnValue ( ) : mixed | ||
return | mixed | The returned value. |
public hasCompleted ( ) : boolean | ||
return | boolean | True if this call has completed. |
public hasResponded ( ) : boolean | ||
return | boolean | True if this call has responded. |
public isGenerator ( ) : boolean | ||
return | boolean | True if this call has responded with a generator. |
public isIterable ( ) : boolean | ||
return | boolean | True if this call has responded with an iterable. |
public iterableEvents ( ) : array |
||
return | array |
public responseEvent ( ) : Eloquent\Phony\Call\Event\ResponseEvent | null | ||
return | Eloquent\Phony\Call\Event\ResponseEvent | null | The response event, or null if the call has not yet responded. |
public responseTime ( ) : float | null | ||
return | float | null | The time at which the call responded, in seconds since the Unix epoch, or null if the call has not yet responded. |
public returnValue ( ) : mixed | ||
return | mixed | The returned value. |
public setEndEvent ( Eloquent\Phony\Call\Event\EndEvent $endEvent ) | ||
$endEvent | Eloquent\Phony\Call\Event\EndEvent | The end event. |
public setResponseEvent ( Eloquent\Phony\Call\Event\ResponseEvent $responseEvent ) | ||
$responseEvent | Eloquent\Phony\Call\Event\ResponseEvent | The response event. |