| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 3 | public static function create(string $chatId, string $question, array $options, array $data = null): self |
|
| 46 | { |
||
| 47 | 3 | $instance = new static(); |
|
| 48 | 3 | $instance->chatId = $chatId; |
|
| 49 | 3 | $instance->question = $question; |
|
| 50 | 3 | $instance->options = $options; |
|
| 51 | 3 | if ($data) { |
|
| 52 | 3 | $instance->fill($data); |
|
| 53 | } |
||
| 54 | |||
| 55 | 3 | return $instance; |
|
| 56 | } |
||
| 58 |