Total Complexity | 2 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
14 | class InputLocationMessageContentType extends InputMessageContentType |
||
15 | { |
||
16 | use FillFromArrayTrait; |
||
17 | /** |
||
18 | * Latitude of the location in degrees. |
||
19 | * |
||
20 | * @var float |
||
21 | */ |
||
22 | public $latitude; |
||
23 | |||
24 | /** |
||
25 | * Longitude of the location in degrees. |
||
26 | * |
||
27 | * @var float |
||
28 | */ |
||
29 | public $longitude; |
||
30 | |||
31 | /** |
||
32 | * Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. |
||
33 | * |
||
34 | * @var int|null |
||
35 | */ |
||
36 | public $livePeriod; |
||
37 | |||
38 | /** |
||
39 | * @param float $latitude |
||
40 | * @param float $longitude |
||
41 | * @param array|null $data |
||
42 | * |
||
43 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
44 | * |
||
45 | * @return InputLocationMessageContentType |
||
46 | */ |
||
47 | public static function create( |
||
62 |