abterphp /
admin
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace AbterPhp\Admin\Orm; |
||
| 6 | |||
| 7 | use AbterPhp\Admin\Domain\Entities\ApiClient as Entity; |
||
| 8 | use AbterPhp\Admin\Orm\DataMappers\ApiClientSqlDataMapper; // @phan-suppress-current-line PhanUnreferencedUseNormal |
||
| 9 | use AbterPhp\Framework\Orm\IGridRepo; |
||
| 10 | use Opulence\Orm\OrmException; |
||
| 11 | use Opulence\Orm\Repositories\Repository; |
||
| 12 | |||
| 13 | class ApiClientRepo extends Repository implements IGridRepo |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param int $limitFrom |
||
| 17 | * @param int $pageSize |
||
| 18 | * @param string[] $orders |
||
| 19 | * @param array $conditions |
||
| 20 | * @param array $params |
||
| 21 | * |
||
| 22 | * @return Entity[] |
||
| 23 | * @throws OrmException |
||
| 24 | */ |
||
| 25 | public function getPage(int $limitFrom, int $pageSize, array $orders, array $conditions, array $params): array |
||
| 26 | { |
||
| 27 | /** @see ApiClientSqlDataMapper::getPage() */ |
||
| 28 | return $this->getFromDataMapper('getPage', [$limitFrom, $pageSize, $orders, $conditions, $params]); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 29 | } |
||
| 30 | } |
||
| 31 |