1 | <?php |
||
8 | class ChatLocation extends BaseType implements TypeInterface |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | static protected $requiredParams = ['location', 'address']; |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | static protected $map = [ |
||
23 | 'location' => Location::class, |
||
24 | 'address' => true, |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * The location to which the supergroup is connected. Can't be a live location. |
||
29 | * |
||
30 | * @var Location |
||
31 | */ |
||
32 | protected $location; |
||
33 | |||
34 | /** |
||
35 | * Location address; 1-64 characters, as defined by the chat owner |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $address; |
||
40 | |||
41 | /** |
||
42 | * @return Location |
||
43 | */ |
||
44 | 1 | public function getLocation() |
|
48 | |||
49 | /** |
||
50 | * @param Location $location |
||
51 | */ |
||
52 | 1 | public function setLocation($location) |
|
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 1 | public function getAddress() |
|
64 | |||
65 | /** |
||
66 | * @param string $address |
||
67 | */ |
||
68 | 1 | public function setAddress($address) |
|
72 | } |
||
73 |