Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
58 | 2 | public static function create( |
|
59 | $chatId, |
||
60 | string $phoneNumber, |
||
61 | string $firstName, |
||
62 | array $data = null |
||
63 | ): SendContactMethod { |
||
64 | 2 | $instance = new static(); |
|
65 | 2 | $instance->chatId = $chatId; |
|
66 | 2 | $instance->phoneNumber = $phoneNumber; |
|
67 | 2 | $instance->firstName = $firstName; |
|
68 | 2 | if ($data) { |
|
69 | 1 | $instance->fill($data); |
|
70 | } |
||
71 | |||
72 | 2 | return $instance; |
|
73 | } |
||
75 |