Passed
Push — master ( 1d30f9...202808 )
by Peter
04:48
created

ApiClientRepo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

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;
9
use AbterPhp\Framework\Orm\IGridRepo;
10
use Opulence\Orm\Repositories\Repository;
11
12
class ApiClientRepo extends Repository implements IGridRepo
13
{
14
    /**
15
     * @param int      $limitFrom
16
     * @param int      $pageSize
17
     * @param string[] $orders
18
     * @param array    $conditions
19
     * @param array    $params
20
     *
21
     * @return Entity[]
22
     */
23
    public function getPage(int $limitFrom, int $pageSize, array $orders, array $conditions, array $params): array
24
    {
25
        /** @see ApiClientSqlDataMapper::getPage() */
26
        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...
27
    }
28
}
29