Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
54 | public static function create(string $id, string $audioFileId, array $data = null): InlineQueryResultCachedAudioType |
||
55 | { |
||
56 | $instance = new static(); |
||
57 | $instance->type = self::TYPE_AUDIO; |
||
58 | $instance->id = $id; |
||
59 | $instance->audioFileId = $audioFileId; |
||
60 | if ($data) { |
||
61 | $instance->fill($data); |
||
62 | } |
||
63 | |||
64 | return $instance; |
||
65 | } |
||
67 |