| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | public static function create(string $id, string $photoFileId, array $data = null): InlineQueryResultCachedPhotoType |
||
| 68 | { |
||
| 69 | $instance = new static(); |
||
| 70 | $instance->type = static::TYPE_PHOTO; |
||
| 71 | $instance->id = $id; |
||
| 72 | $instance->photoFileId = $photoFileId; |
||
| 73 | if ($data) { |
||
| 74 | $instance->fill($data); |
||
| 75 | } |
||
| 76 | |||
| 77 | return $instance; |
||
| 78 | } |
||
| 80 |