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