ApiClientRepo   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPage() 0 4 1
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
The expression return $this->getFromDat... $conditions, $params)) could return the type object which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
29
    }
30
}
31