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