| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public static function create( |
||
| 43 | string $id, |
||
| 44 | string $stickerFileId, |
||
| 45 | array $data = null |
||
| 46 | ): InlineQueryResultCachedStickerType { |
||
| 47 | $instance = new static(); |
||
| 48 | $instance->type = static::TYPE_STICKER; |
||
| 49 | $instance->id = $id; |
||
| 50 | $instance->stickerFileId = $stickerFileId; |
||
| 51 | if ($data) { |
||
| 52 | $instance->fill($data); |
||
| 53 | } |
||
| 54 | |||
| 55 | return $instance; |
||
| 56 | } |
||
| 58 |