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