@@ -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); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | * |
| 107 | 107 | * @throws \Doctrine\ORM\ORMException |
| 108 | 108 | * |
| 109 | - * @return null|Genre |
|
| 109 | + * @return Genre |
|
| 110 | 110 | */ |
| 111 | 111 | private function getGenreReference(int $id): ?object |
| 112 | 112 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Genres\Entity\Genre; |
| 6 | 6 | use App\Movies\Entity\Movie; |
| 7 | -use App\Movies\Repository\MovieRepository; |
|
| 8 | 7 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
| 9 | 8 | use Doctrine\ORM\EntityManager; |
| 10 | 9 | use Doctrine\ORM\EntityManagerInterface; |