Beta version

abstract class AbstractApi

Class AbstractApi.

Methods

__construct(Container $container)

No description

EntityRepository
getRepository()

Return entity path for current API.

array|Paginator
getBy(array $criteria)

Return an array of entities matching criteria array.

mixed
getOneBy(array $criteria)

Return one entity matching criteria array.

int
countBy(array $criteria)

Count entities matching criteria array.

Details

at line 52
__construct(Container $container)

Parameters

Container $container

at line 62
abstract EntityRepository getRepository()

Return entity path for current API.

Return Value

EntityRepository

at line 70
abstract array|Paginator getBy(array $criteria)

Return an array of entities matching criteria array.

Parameters

array $criteria

Return Value

array|Paginator

at line 79
abstract mixed getOneBy(array $criteria)

Return one entity matching criteria array.

Parameters

array $criteria

Return Value

mixed

at line 88
abstract int countBy(array $criteria)

Count entities matching criteria array.

Parameters

array $criteria

Return Value

int