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