CallbackPrediction
in package
implements
PredictionInterface
Callback prediction.
Tags
Interfaces, Classes and Traits
- PredictionInterface
- Prediction interface.
Table of Contents
- $callback : mixed
- __construct() : mixed
- Initializes callback prediction.
- check() : void
- Executes preset callback.
Properties
$callback
private
mixed
$callback
Methods
__construct()
Initializes callback prediction.
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
-
Custom callback
Tags
Return values
mixed —check()
Executes preset callback.
public
check(array<string|int, Call> $calls, ObjectProphecy $object, MethodProphecy $method) : void
Parameters
- $calls : array<string|int, Call>
- $object : ObjectProphecy
- $method : MethodProphecy