InputVenueMessageContent::getAddress()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\Input;
6
7
/**
8
 * Represents the content of a venue message to be sent as the result of an inline query.
9
 *
10
 * More on https://core.telegram.org/bots/api#inputvenuemessagecontent
11
 */
12
class InputVenueMessageContent extends InputMessageContent
13
{
14
15
    /**
16
     * Latitude of the venue in degrees
17
     *
18
     * @var float
19
     */
20
    private $latitude;
21
22
    /**
23
     * Longitude of the venue in degrees
24
     *
25
     * @var float
26
     */
27
    private $longitude;
28
29
    /**
30
     * Name of the venue
31
     *
32
     * @var string
33
     */
34
    private $title;
35
36
    /**
37
     * Address of the venue
38
     *
39
     * @var string
40
     */
41
    private $address;
42
43
    /**
44
     * Optional. Foursquare identifier of the venue, if known
45
     *
46
     * @var string|null
47
     */
48
    private $foursquare_id;
49
50
    /**
51
     * Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default",
52
     * "arts_entertainment/aquarium" or "food/icecream".)
53
     *
54
     * @var string|null
55
     */
56
    private $foursquare_type;
57
58
    /**
59
     * Optional. Google Places identifier of the venue
60
     *
61
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
62
     *
63
     * @var string|null
64
     */
65
    private $google_place_id;
66
67
    /**
68
     * Optional. Google Places type of the venue. (See supported types.)
69
     *
70
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
71
     *
72
     * @var string|null
73
     */
74
    private $google_place_type;
75
76
    /**
77
     * @return float
78
     */
79
    public function getLatitude(): float
80
    {
81
        return $this->latitude;
82
    }
83
84
    /**
85
     * @param float $latitude
86
     */
87
    public function setLatitude(float $latitude): void
88
    {
89
        $this->latitude = $latitude;
90
    }
91
92
    /**
93
     * @return float
94
     */
95
    public function getLongitude(): float
96
    {
97
        return $this->longitude;
98
    }
99
100
    /**
101
     * @param float $longitude
102
     */
103
    public function setLongitude(float $longitude): void
104
    {
105
        $this->longitude = $longitude;
106
    }
107
108
    /**
109
     * @return string
110
     */
111
    public function getTitle(): string
112
    {
113
        return $this->title;
114
    }
115
116
    /**
117
     * @param string $title
118
     */
119
    public function setTitle(string $title): void
120
    {
121
        $this->title = $title;
122
    }
123
124
    /**
125
     * @return string
126
     */
127
    public function getAddress(): string
128
    {
129
        return $this->address;
130
    }
131
132
    /**
133
     * @param string $address
134
     */
135
    public function setAddress(string $address): void
136
    {
137
        $this->address = $address;
138
    }
139
140
    /**
141
     * @return string|null
142
     */
143
    public function getFoursquareId(): ?string
144
    {
145
        return $this->foursquare_id;
146
    }
147
148
    /**
149
     * @param string|null $foursquare_id
150
     */
151
    public function setFoursquareId(?string $foursquare_id): void
152
    {
153
        $this->foursquare_id = $foursquare_id;
154
    }
155
156
    /**
157
     * @return string|null
158
     */
159
    public function getFoursquareType(): ?string
160
    {
161
        return $this->foursquare_type;
162
    }
163
164
    /**
165
     * @param string|null $foursquare_type
166
     */
167
    public function setFoursquareType(?string $foursquare_type): void
168
    {
169
        $this->foursquare_type = $foursquare_type;
170
    }
171
172
    /**
173
     * @return string|null
174
     */
175
    public function getGooglePlaceType(): ?string
176
    {
177
        return $this->google_place_type;
178
    }
179
180
    /**
181
     * @param string|null $google_place_type
182
     */
183
    public function setGooglePlaceType(?string $google_place_type): void
184
    {
185
        $this->google_place_type = $google_place_type;
186
    }
187
188
    /**
189
     * @return string|null
190
     */
191
    public function getGooglePlaceId(): ?string
192
    {
193
        return $this->google_place_id;
194
    }
195
196
    /**
197
     * @param string|null $google_place_id
198
     */
199
    public function setGooglePlaceId(?string $google_place_id): void
200
    {
201
        $this->google_place_id = $google_place_id;
202
    }
203
204
}