@@ -6,7 +6,6 @@ |
||
6 | 6 | use App\Movies\Repository\MovieRepository; |
7 | 7 | use App\Movies\Service\TmdbSearchService; |
8 | 8 | use App\Users\Entity\User; |
9 | -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
|
10 | 9 | use Doctrine\ORM\EntityManager; |
11 | 10 | use Doctrine\ORM\EntityManagerInterface; |
12 | 11 | use Enqueue\Client\TopicSubscriberInterface; |
@@ -105,7 +105,7 @@ |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @param array $moviesTranslationsDTOs |
|
108 | + * @param \Iterator $moviesTranslationsDTOs |
|
109 | 109 | * @param Movie $movie |
110 | 110 | * |
111 | 111 | * @throws \Doctrine\ORM\ORMException |
@@ -10,10 +10,7 @@ |
||
10 | 10 | use App\Movies\Repository\MovieRepository; |
11 | 11 | use App\Movies\Service\TmdbSearchService; |
12 | 12 | use App\Service\LocaleService; |
13 | -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
|
14 | -use Doctrine\ORM\EntityManager; |
|
15 | 13 | use Doctrine\ORM\EntityManagerInterface; |
16 | -use Enqueue\Client\Message; |
|
17 | 14 | use Enqueue\Client\ProducerInterface; |
18 | 15 | use Enqueue\Client\TopicSubscriberInterface; |
19 | 16 | use Interop\Queue\PsrContext; |
@@ -13,6 +13,9 @@ |
||
13 | 13 | private $totalCount; |
14 | 14 | private $movies; |
15 | 15 | |
16 | + /** |
|
17 | + * @param integer $totalCount |
|
18 | + */ |
|
16 | 19 | public function __construct($movies, $totalCount, int $offset = 0) |
17 | 20 | { |
18 | 21 | $this->totalCount = abs($totalCount); |