Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class PostRepository extends Select\Repository |
||
13 | { |
||
14 | private ORMInterface $orm; |
||
15 | |||
16 | 4 | public function __construct(Select $select, ORMInterface $orm) |
|
20 | 4 | } |
|
21 | |||
22 | 1 | public function findAll(array $scope = [], array $orderBy = []): EntityReader |
|
23 | { |
||
24 | 1 | return new EntityReader( |
|
25 | 1 | $this->select()->where($scope)->orderBy($orderBy) |
|
26 | ); |
||
27 | } |
||
28 | |||
29 | 2 | public function save(Post $user): void |
|
34 | 2 | } |
|
35 | } |
||
36 |