Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class CommentRepository extends Select\Repository |
||
14 | { |
||
15 | /** |
||
16 | * @psalm-return DataReaderInterface<int, Comment> |
||
17 | */ |
||
18 | 1 | public function getReader(): DataReaderInterface |
|
19 | { |
||
20 | 1 | return (new EntityReader($this->select())) |
|
21 | 1 | ->withSort($this->getSort()); |
|
22 | } |
||
23 | |||
24 | 1 | private function getSort(): Sort |
|
27 | } |
||
28 | } |
||
29 |