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