Copied!

HandlerInterface

HandlerInterface.php : 14

Methods

publiccountBy()

HandlerInterface.php : 32
public countBy(array<string|int, scalar|array<string|int, scalar>|Expression$criteria) : int

Parameters

Name Type Default value Description
$criteria array<string|int, scalar|array<string|int, scalar>|Expression> - -

Return values

int

publicexists()

HandlerInterface.php : 41
public exists(int $id) : bool

Parameters

Name Type Default value Description
$id int - -

Return values

bool

publicfind()

HandlerInterface.php : 39
public find(int $id) : T

Parameters

Name Type Default value Description
$id int - -

Return values

T

Tags
Throws
NotFoundException

publicfindAll()

HandlerInterface.php : 19
public findAll([int|null $limit = null ][, int $offset = 0 ]) : array<string|int, T>

Parameters

Name Type Default value Description
$limit int|null null -
$offset int 0 -

Return values

array<string|int, T>

publicfindBy()

HandlerInterface.php : 27
public findBy(array<string|int, scalar|array<string|int, scalar>|Expression$criteria[, array<string, mixed>|null $orderBy = null ][, int|null $limit = null ][, int $offset = 0 ]) : array<string|int, T>

Parameters

Name Type Default value Description
$criteria array<string|int, scalar|array<string|int, scalar>|Expression> - -
$orderBy array<string, mixed>|null null -
$limit int|null null -
$offset int 0 -

Return values

array<string|int, T>