| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 1 | public static function create(int $chatId, string $gameShortName, array $data = null): SendGameMethod |
|
| 58 | { |
||
| 59 | 1 | $instance = new static(); |
|
| 60 | 1 | $instance->chatId = $chatId; |
|
| 61 | 1 | $instance->gameShortName = $gameShortName; |
|
| 62 | 1 | if ($data) { |
|
| 63 | 1 | $instance->fill($data); |
|
| 64 | } |
||
| 65 | |||
| 66 | 1 | return $instance; |
|
| 67 | } |
||
| 69 |