Menu

## CallbackPrediction
in package
implements PredictionInterface

CallbackPrediction.php : 26

Callback prediction.

##### Tags

author

  Konstantin Kudryashov ever.zet@gmail.com

### Interfaces, Classes and Traits

PredictionInterface
  Prediction interface.

### Table of Contents

$callback : mixed
__construct() : mixed
  Initializes callback prediction.
check() : void
  Executes preset callback.

### Properties

#### $callback

CallbackPrediction.php : 28
`private mixed $callback`

### Methods

#### __construct()

CallbackPrediction.php : 37

Initializes callback prediction.

`public __construct(callable $callback) : mixed`

##### Parameters

$callback : callable

  Custom callback

##### Tags

throws
  InvalidArgumentException

##### Return values

mixed —

#### check()

CallbackPrediction.php : 56

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

##### Return values

void —

## Search results