| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class GetCommentsListController |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var CommentRepository |
||
| 18 | */ |
||
| 19 | private $commentRepository; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param CommentRepository $repository |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(CommentRepository $repository) |
|
| 25 | { |
||
| 26 | 1 | $this->commentRepository = $repository; |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param Article $article |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 1 | public function __invoke(Article $article) |
|
| 37 | } |
||
| 38 | } |
||
| 39 |