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