| 1 | <?php |
||
| 14 | class Venue extends BaseType implements TypeInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | static protected $requiredParams = ['location', 'title', 'address']; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | static protected $map = [ |
||
| 29 | 'location' => Location::class, |
||
| 30 | 'title' => true, |
||
| 31 | 'address' => true, |
||
| 32 | 'foursquare_id' => true, |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Venue location |
||
| 37 | * |
||
| 38 | * @var Location |
||
| 39 | */ |
||
| 40 | protected $location; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Name of the venue |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | protected $title; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Address of the venue |
||
| 51 | * |
||
| 52 | * @var string |
||
| 53 | */ |
||
| 54 | protected $address; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Optional. Foursquare identifier of the venue |
||
| 58 | * |
||
| 59 | * @var string |
||
| 60 | */ |
||
| 61 | protected $foursquareId; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return Location |
||
| 65 | */ |
||
| 66 | public function getLocation() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param Location $location |
||
| 73 | */ |
||
| 74 | public function setLocation($location) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getTitle() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param string $title |
||
| 89 | */ |
||
| 90 | public function setTitle($title) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | public function getAddress() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @param string $address |
||
| 105 | */ |
||
| 106 | public function setAddress($address) |
||
| 110 | |||
| 111 | /** |
||
| 112 | * @return string |
||
| 113 | */ |
||
| 114 | public function getFoursquareId() |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @param string $foursquareId |
||
| 121 | */ |
||
| 122 | public function setFoursquareId($foursquareId) |
||
| 126 | } |
||
| 127 |