| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public static function create($chatId, float $latitude, float $longitude, array $data = null): SendLocationMethod |
||
| 52 | { |
||
| 53 | $instance = new static(); |
||
| 54 | $instance->chatId = $chatId; |
||
| 55 | $instance->latitude = $latitude; |
||
| 56 | $instance->longitude = $longitude; |
||
| 57 | if ($data) { |
||
| 58 | $instance->fill($data); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $instance; |
||
| 62 | } |
||
| 64 |