@@ -4,23 +4,16 @@ |
||
4 | 4 | |
5 | 5 | use App\Controller\BaseController; |
6 | 6 | use App\Guests\Entity\GuestSession; |
7 | -use App\Movies\DTO\WatchedMovieDTO; |
|
8 | 7 | use App\Movies\Entity\Movie; |
9 | 8 | use App\Pagination\PaginatedCollection; |
10 | -use App\Pagination\PaginatorBuilder; |
|
11 | 9 | use App\Users\Entity\User; |
12 | 10 | use App\Users\Entity\UserWatchedMovie; |
13 | -use App\Movies\Repository\MovieRepository; |
|
14 | -use App\Movies\Service\SearchService; |
|
15 | 11 | use App\Movies\Request\AddWatchedMovieRequest; |
16 | 12 | use App\Movies\Service\WatchedMovieService; |
17 | 13 | use App\Users\Repository\WatchedMovieRepository; |
18 | 14 | use App\Users\Request\MergeWatchedMoviesRequest; |
19 | -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
|
20 | -use Doctrine\ORM\Tools\Pagination\Paginator; |
|
21 | 15 | use Symfony\Component\HttpFoundation\JsonResponse; |
22 | 16 | use Symfony\Component\HttpFoundation\Request; |
23 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
|
24 | 17 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
25 | 18 | use Symfony\Component\Routing\Annotation\Route; |
26 | 19 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * @param int $id |
86 | - * @return null|object |
|
86 | + * @return Genre |
|
87 | 87 | * @throws \Doctrine\ORM\ORMException |
88 | 88 | */ |
89 | 89 | private function getGenreReference(int $id) |
@@ -12,6 +12,9 @@ |
||
12 | 12 | private $totalCount; |
13 | 13 | private $movies; |
14 | 14 | |
15 | + /** |
|
16 | + * @param integer $totalCount |
|
17 | + */ |
|
15 | 18 | public function __construct(array $movies, $totalCount, int $offset = 0) |
16 | 19 | { |
17 | 20 | $this->totalCount = abs($totalCount); |