Total Complexity | 1 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class UploadStickerFileMethod implements UploadMethodAliasInterface |
||
19 | { |
||
20 | /** |
||
21 | * User identifier of sticker file owner. |
||
22 | * |
||
23 | * @var int |
||
24 | */ |
||
25 | public $userId; |
||
26 | |||
27 | /** |
||
28 | * Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, |
||
29 | * and either width or height must be exactly 512px. |
||
30 | * |
||
31 | * @var InputFileType |
||
32 | */ |
||
33 | public $pngSticker; |
||
34 | |||
35 | /** |
||
36 | * @param int $userId |
||
37 | * @param InputFileType $pngSticker |
||
38 | * |
||
39 | * @return UploadStickerFileMethod |
||
40 | */ |
||
41 | 1 | public static function create(int $userId, InputFileType $pngSticker): UploadStickerFileMethod |
|
50 |