Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
73 | public static function create( |
||
74 | $chatId, |
||
75 | float $latitude, |
||
76 | float $longitude, |
||
77 | string $title, |
||
78 | $address, |
||
79 | array $data = null |
||
80 | ): SendVenueMethod { |
||
81 | $instance = new static(); |
||
82 | $instance->chatId = $chatId; |
||
83 | $instance->latitude = $latitude; |
||
84 | $instance->longitude = $longitude; |
||
85 | $instance->title = $title; |
||
86 | $instance->address = $address; |
||
87 | if ($data) { |
||
88 | $instance->fill($data); |
||
89 | } |
||
90 | |||
91 | return $instance; |
||
92 | } |
||
94 |