| 1 | <?php |
||
| 6 | class MovieDTO |
||
| 7 | { |
||
| 8 | private $originalTitle; |
||
| 9 | private $originalPosterUrl; |
||
| 10 | private $imdbId; |
||
| 11 | private $budget; |
||
| 12 | private $runtime; |
||
| 13 | private $releaseDate; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * MovieDTO constructor. |
||
| 17 | * @param null|string $originalTitle |
||
| 18 | * @param null|string $originalPosterUrl |
||
| 19 | * @param null|string $imdbId |
||
| 20 | * @param int|null $budget |
||
| 21 | * @param int|null $runtime |
||
| 22 | * @param null|string $releaseDate |
||
| 23 | * @throws \Exception |
||
| 24 | */ |
||
| 25 | 3 | public function __construct(?string $originalTitle, ?string $originalPosterUrl, ?string $imdbId, ?int $budget, ?int $runtime, ?string $releaseDate) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return null|string |
||
| 37 | */ |
||
| 38 | 3 | public function getOriginalTitle(): ?string |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return null|string |
||
| 45 | */ |
||
| 46 | 3 | public function getOriginalPosterUrl(): ?string |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return null|string |
||
| 53 | */ |
||
| 54 | 3 | public function getImdbId(): ?string |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return int |
||
| 61 | */ |
||
| 62 | 3 | public function getBudget(): int |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @return int |
||
| 69 | */ |
||
| 70 | 3 | public function getRuntime(): int |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return \DateTimeImmutable |
||
| 77 | */ |
||
| 78 | 3 | public function getReleaseDate(): \DateTimeImmutable |
|
| 82 | } |