| Total Complexity | 8 |
| Total Lines | 111 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | class Venue extends BaseType implements TypeInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | static protected $requiredParams = ['location', 'title', 'address']; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | static protected $map = [ |
||
| 35 | 'location' => Location::class, |
||
| 36 | 'title' => true, |
||
| 37 | 'address' => true, |
||
| 38 | 'foursquare_id' => true, |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Venue location |
||
| 43 | * |
||
| 44 | * @var Location |
||
| 45 | */ |
||
| 46 | protected $location; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Name of the venue |
||
| 50 | * |
||
| 51 | * @var string |
||
| 52 | */ |
||
| 53 | protected $title; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Address of the venue |
||
| 57 | * |
||
| 58 | * @var string |
||
| 59 | */ |
||
| 60 | protected $address; |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Optional. Foursquare identifier of the venue |
||
| 64 | * |
||
| 65 | * @var string |
||
| 66 | */ |
||
| 67 | protected $foursquareId; |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return Location |
||
| 71 | */ |
||
| 72 | public function getLocation() |
||
| 73 | { |
||
| 74 | return $this->location; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @param Location $location |
||
| 79 | */ |
||
| 80 | public function setLocation($location) |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function getTitle() |
||
| 89 | { |
||
| 90 | return $this->title; |
||
| 91 | } |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @param string $title |
||
| 95 | */ |
||
| 96 | public function setTitle($title) |
||
| 99 | } |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return string |
||
| 103 | */ |
||
| 104 | public function getAddress() |
||
| 105 | { |
||
| 106 | return $this->address; |
||
| 107 | } |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @param string $address |
||
| 111 | */ |
||
| 112 | public function setAddress($address) |
||
| 115 | } |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @return string |
||
| 119 | */ |
||
| 120 | public function getFoursquareId() |
||
| 121 | { |
||
| 122 | return $this->foursquareId; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @param string $foursquareId |
||
| 127 | */ |
||
| 128 | public function setFoursquareId($foursquareId) |
||
| 131 | } |
||
| 132 | } |
||
| 133 |