| Total Complexity | 5 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class UserProfilePhotos extends BaseType implements TypeInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | static protected $requiredParams = ['total_count', 'photos']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | static protected $map = [ |
||
| 30 | 'total_count' => true, |
||
| 31 | 'photos' => ArrayOfArrayOfPhotoSize::class, |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Total number of profile pictures the target user has |
||
| 36 | * |
||
| 37 | * @var Integer |
||
| 38 | */ |
||
| 39 | protected $totalCount; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Requested profile pictures (in up to 4 sizes each). |
||
| 43 | * Array of Array of \TelegramBot\Api\Types\PhotoSize |
||
| 44 | * |
||
| 45 | * @var array |
||
| 46 | */ |
||
| 47 | protected $photos; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | 2 | public function getPhotos() |
|
| 53 | { |
||
| 54 | 2 | return $this->photos; |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param array $photos |
||
| 59 | */ |
||
| 60 | 3 | public function setPhotos($photos) |
|
| 61 | { |
||
| 62 | 3 | $this->photos = $photos; |
|
| 63 | 3 | } |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | 1 | public function getTotalCount() |
|
| 69 | { |
||
| 70 | 1 | return $this->totalCount; |
|
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param int $totalCount |
||
| 75 | * |
||
| 76 | * @throws InvalidArgumentException |
||
| 77 | */ |
||
| 78 | 4 | public function setTotalCount($totalCount) |
|
| 84 | } |
||
| 85 | 3 | } |
|
| 86 | } |
||
| 87 |