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