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