Venue   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 197
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 14
eloc 31
c 1
b 0
f 1
dl 0
loc 197
ccs 0
cts 32
cp 0
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getLocation() 0 3 1
A setFoursquareType() 0 3 1
A setLocation() 0 3 1
A getGooglePlaceId() 0 3 1
A setGooglePlaceType() 0 3 1
A setTitle() 0 3 1
A getFoursquareType() 0 3 1
A getGooglePlaceType() 0 3 1
A setGooglePlaceId() 0 3 1
A setAddress() 0 3 1
A setFoursquareId() 0 3 1
A getTitle() 0 3 1
A getFoursquareId() 0 3 1
A getAddress() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: iGusev
5
 * Date: 13/04/16
6
 * Time: 13:55
7
 */
8
9
namespace TelegramBot\Api\Types;
10
11
use TelegramBot\Api\BaseType;
12
use TelegramBot\Api\TypeInterface;
13
14
/**
15
 * Class Venue
16
 * This object represents a venue
17
 *
18
 * @package TelegramBot\Api\Types
19
 */
20
class Venue extends BaseType implements TypeInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     *
25
     * @var array
26
     */
27
    protected static $requiredParams = ['location', 'title', 'address'];
28
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @var array
33
     */
34
    protected static $map = [
35
        'location' => Location::class,
36
        'title' => true,
37
        'address' => true,
38
        'foursquare_id' => true,
39
        'foursquare_type' => true,
40
        'google_place_id' => true,
41
        'google_place_type' => true,
42
    ];
43
44
    /**
45
     * Venue location
46
     *
47
     * @var Location
48
     */
49
    protected $location;
50
51
    /**
52
     * Name of the venue
53
     *
54
     * @var string
55
     */
56
    protected $title;
57
58
    /**
59
     * Address of the venue
60
     *
61
     * @var string
62
     */
63
    protected $address;
64
65
    /**
66
     * Optional. Foursquare identifier of the venue
67
     *
68
     * @var string|null
69
     */
70
    protected $foursquareId;
71
72
    /**
73
     * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
74
     *
75
     * @var string|null
76
     */
77
    protected $foursquareType;
78
79
    /**
80
     * Optional. Google Places identifier of the venue
81
     *
82
     * @var string|null
83
     */
84
    protected $googlePlaceId;
85
86
    /**
87
     * Optional. Google Places type of the venue.
88
     *
89
     * @var string|null
90
     */
91
    protected $googlePlaceType;
92
93
    /**
94
     * @return Location
95
     */
96
    public function getLocation()
97
    {
98
        return $this->location;
99
    }
100
101
    /**
102
     * @param Location $location
103
     *
104
     * @return void
105
     */
106
    public function setLocation($location)
107
    {
108
        $this->location = $location;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getTitle()
115
    {
116
        return $this->title;
117
    }
118
119
    /**
120
     * @param string $title
121
     *
122
     * @return void
123
     */
124
    public function setTitle($title)
125
    {
126
        $this->title = $title;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getAddress()
133
    {
134
        return $this->address;
135
    }
136
137
    /**
138
     * @param string $address
139
     *
140
     * @return void
141
     */
142
    public function setAddress($address)
143
    {
144
        $this->address = $address;
145
    }
146
147
    /**
148
     * @return null|string
149
     */
150
    public function getFoursquareId()
151
    {
152
        return $this->foursquareId;
153
    }
154
155
    /**
156
     * @param string $foursquareId
157
     *
158
     * @return void
159
     */
160
    public function setFoursquareId($foursquareId)
161
    {
162
        $this->foursquareId = $foursquareId;
163
    }
164
165
    /**
166
     * @return null|string
167
     */
168
    public function getFoursquareType()
169
    {
170
        return $this->foursquareType;
171
    }
172
173
    /**
174
     * @param string $foursquareType
175
     *
176
     * @return void
177
     */
178
    public function setFoursquareType($foursquareType)
179
    {
180
        $this->foursquareType = $foursquareType;
181
    }
182
183
    /**
184
     * @return null|string
185
     */
186
    public function getGooglePlaceId()
187
    {
188
        return $this->googlePlaceId;
189
    }
190
191
    /**
192
     * @param string $googlePlaceId
193
     *
194
     * @return void
195
     */
196
    public function setGooglePlaceId($googlePlaceId)
197
    {
198
        $this->googlePlaceId = $googlePlaceId;
199
    }
200
201
    /**
202
     * @return null|string
203
     */
204
    public function getGooglePlaceType()
205
    {
206
        return $this->googlePlaceType;
207
    }
208
209
    /**
210
     * @param string $googlePlaceType
211
     *
212
     * @return void
213
     */
214
    public function setGooglePlaceType($googlePlaceType)
215
    {
216
        $this->googlePlaceType = $googlePlaceType;
217
    }
218
}
219