forked from TelegramBot/Api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserProfilePhotos.php
More file actions
86 lines (76 loc) · 1.61 KB
/
Copy pathUserProfilePhotos.php
File metadata and controls
86 lines (76 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
namespace TelegramBot\Api\Types;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\InvalidArgumentException;
use TelegramBot\Api\TypeInterface;
/**
* Class UserProfilePhotos
* This object represent a user's profile pictures.
*
* @package TelegramBot\Api\Types
*/
class UserProfilePhotos extends BaseType implements TypeInterface
{
/**
* {@inheritdoc}
*
* @var array
*/
static protected $requiredParams = ['total_count', 'photos'];
/**
* {@inheritdoc}
*
* @var array
*/
static protected $map = [
'total_count' => true,
'photos' => ArrayOfArrayOfPhotoSize::class,
];
/**
* Total number of profile pictures the target user has
*
* @var Integer
*/
protected $totalCount;
/**
* Requested profile pictures (in up to 4 sizes each).
* Array of Array of \TelegramBot\Api\Types\PhotoSize
*
* @var array
*/
protected $photos;
/**
* @return array
*/
public function getPhotos()
{
return $this->photos;
}
/**
* @param array $photos
*/
public function setPhotos($photos)
{
$this->photos = $photos;
}
/**
* @return int
*/
public function getTotalCount()
{
return $this->totalCount;
}
/**
* @param int $totalCount
*
* @throws InvalidArgumentException
*/
public function setTotalCount($totalCount)
{
if (is_integer($totalCount)) {
$this->totalCount = $totalCount;
} else {
throw new InvalidArgumentException();
}
}
}