| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 1 | public static function create(int $chatId, string $gameShortName, array $data = null): SendGameMethod |
|
| 41 | { |
||
| 42 | 1 | $instance = new static(); |
|
| 43 | 1 | $instance->chatId = $chatId; |
|
| 44 | 1 | $instance->gameShortName = $gameShortName; |
|
| 45 | 1 | if ($data) { |
|
| 46 | 1 | $instance->fill($data); |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | return $instance; |
|
| 50 | } |
||
| 52 |