| 1 | <?php |
||
| 14 | final class Venue |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | private $url; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var City|null |
||
| 33 | */ |
||
| 34 | private $city; |
||
| 35 | |||
| 36 | public function __construct(string $id, string $name, ?string $url, ?City $city) |
||
| 43 | |||
| 44 | public function getId(): string |
||
| 48 | |||
| 49 | public function getName(): string |
||
| 53 | |||
| 54 | public function getUrl(): ?string |
||
| 58 | |||
| 59 | public function getCity(): ?City |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return Venue |
||
| 66 | */ |
||
| 67 | public static function fromApi(array $data): self |
||
| 82 | } |
||
| 83 |