PrepareMock uses trait:short
Table of Contents
Properties
- $mock : bool
- The mock flag to test the model.
Methods
- initializeMock() : $this
- Initialize the `mock` property.
- prepareMock() : bool|null
- Prepare and returns the 'mock' value.
Properties
$mock
The mock flag to test the model.
public
bool
$mock
= null
Methods
initializeMock()
Initialize the `mock` property.
public
initializeMock([bool|array<string|int, mixed> $init = [] ]) : $this
Parameters
- $init : bool|array<string|int, mixed> = []
Return values
$thisprepareMock()
Prepare and returns the 'mock' value.
protected
prepareMock(ServerRequestInterface|null $request[, array<string|int, mixed> $args = [] ][, array<string|int, mixed>|null &$params = null ]) : bool|null
Parameters
- $request : ServerRequestInterface|null
- $args : array<string|int, mixed> = []
- $params : array<string|int, mixed>|null = null