| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class CommentsListController |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var CommentRepository |
||
| 20 | */ |
||
| 21 | private $repository; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param CommentRepository $repository |
||
| 25 | */ |
||
| 26 | 1 | public function __construct(CommentRepository $repository) |
|
| 29 | 1 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param Article $article |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function __invoke(Article $article) |
|
| 41 |