Total Complexity | 2 |
Total Lines | 79 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
13 | class SendVenueMethod |
||
14 | { |
||
15 | use FillFromArrayTrait; |
||
16 | use SendToChatVariablesTrait; |
||
17 | |||
18 | /** |
||
19 | * Latitude of the venue. |
||
20 | * |
||
21 | * @var float |
||
22 | */ |
||
23 | public $latitude; |
||
24 | |||
25 | /** |
||
26 | * Longitude of the venue. |
||
27 | * |
||
28 | * @var float |
||
29 | */ |
||
30 | public $longitude; |
||
31 | |||
32 | /** |
||
33 | * Name of the venue. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | public $title; |
||
38 | |||
39 | /** |
||
40 | * Address of the venue. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | public $address; |
||
45 | |||
46 | /** |
||
47 | * Optional. Foursquare identifier of the venue. |
||
48 | * |
||
49 | * @var string|null |
||
50 | */ |
||
51 | public $foursquareId; |
||
52 | |||
53 | /** |
||
54 | * Optional. Foursquare type of the venue, if known. |
||
55 | * (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.). |
||
56 | * |
||
57 | * @var string|null |
||
58 | */ |
||
59 | public $foursquareType; |
||
60 | |||
61 | /** |
||
62 | * @param int|string $chatId |
||
63 | * @param float $latitude |
||
64 | * @param float $longitude |
||
65 | * @param string $title |
||
66 | * @param string $address |
||
67 | * @param array|null $data |
||
68 | * |
||
69 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
70 | * |
||
71 | * @return SendVenueMethod |
||
72 | */ |
||
73 | public static function create( |
||
94 |