| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class SearchController |
||
| 14 | { |
||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * @var ArticleService |
||
| 19 | */ |
||
| 20 | private $articleService; |
||
| 21 | |||
| 22 | |||
| 23 | public function __construct(ArticleService $articleService) |
||
| 24 | { |
||
| 25 | $this->articleService = $articleService; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Request $request |
||
| 30 | * @return JsonResponse |
||
| 31 | * @SWG\Response( |
||
| 32 | * response=200, |
||
| 33 | * description="Returns the article collection" |
||
| 34 | * ) |
||
| 35 | * @SWG\Parameter( |
||
| 36 | * name="query", |
||
| 37 | * in="query", |
||
| 38 | * type="string", |
||
| 39 | * description="search query" |
||
| 40 | * ) |
||
| 41 | * @SWG\Tag(name="search") |
||
| 42 | */ |
||
| 43 | public function index(Request $request) |
||
| 48 | |||
| 49 | } |
||
| 50 | } |