| 1 | <?php |
||
| 13 | class MovieTMDB |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @Groups({"list", "view"}) |
||
| 17 | * @ORM\Column(type="integer", unique=true) |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @Groups({"list", "view"}) |
||
| 23 | * @ORM\Column(type="decimal", nullable=true) |
||
| 24 | */ |
||
| 25 | private $voteAverage; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @Groups({"view"}) |
||
| 29 | * @ORM\Column(type="integer", nullable=true) |
||
| 30 | */ |
||
| 31 | private $voteCount; |
||
| 32 | |||
| 33 | 3 | public function __construct(int $tmdbId, ?float $voteAverage, ?int $voteCount) |
|
| 39 | |||
| 40 | 7 | public function getId(): int |
|
| 44 | |||
| 45 | 6 | public function getVoteAverage(): ?float |
|
| 49 | |||
| 50 | 1 | public function getVoteCount(): ?int |
|
| 54 | } |