| 1 | <?php |
||
| 13 | final class DoctrineApi extends SingleRequestApi |
||
|
|
|||
| 14 | { |
||
| 15 | const METHOD_FIND = 'find'; |
||
| 16 | const METHOD_SEARCH = 'search'; |
||
| 17 | const METHOD_COUNT = 'count'; |
||
| 18 | |||
| 19 | private static $params = [ |
||
| 20 | 'criteria', |
||
| 21 | 'sort', |
||
| 22 | 'limit', |
||
| 23 | 'offset', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /** {@inheritdoc} */ |
||
| 27 | protected function createCountRequest(ApiMetadata $metadata, array $criteria) |
||
| 34 | |||
| 35 | /** {@inheritdoc} */ |
||
| 36 | protected function createFindRequest(ApiMetadata $metadata, array $identifier) |
||
| 43 | |||
| 44 | /** {@inheritdoc} */ |
||
| 45 | protected function createSearchRequest(ApiMetadata $metadata, array $parameters) |
||
| 52 | } |
||
| 53 |