Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class GetUserProfilePhotosMethod |
||
16 | { |
||
17 | use FillFromArrayTrait; |
||
18 | use UserIdVariableTrait; |
||
19 | |||
20 | /** |
||
21 | * Optional. Sequential number of the first photo to be returned. By default, all photos are returned. |
||
22 | * |
||
23 | * @var int|null |
||
24 | */ |
||
25 | public $offset; |
||
26 | |||
27 | /** |
||
28 | * Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100. |
||
29 | * |
||
30 | * @var int|null |
||
31 | */ |
||
32 | public $limit; |
||
33 | |||
34 | /** |
||
35 | * GetUserProfilePhotosMethod constructor. |
||
36 | * |
||
37 | * @param int $userId |
||
38 | * @param array|null $data |
||
39 | * |
||
40 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
41 | * |
||
42 | * @return GetUserProfilePhotosMethod |
||
43 | */ |
||
44 | 6 | public static function create(int $userId, array $data = null): GetUserProfilePhotosMethod |
|
55 |