UserProfilePhotos::setPhotos()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\File;
6
7
/**
8
 * This object represent a user's profile pictures.
9
 *
10
 * More on https://core.telegram.org/bots/api#userprofilephotos
11
 */
12
class UserProfilePhotos
13
{
14
15
    /**
16
     * Total number of profile pictures the target user has
17
     *
18
     * @var int
19
     */
20
    private $total_count;
21
22
    /**
23
     * Requested profile pictures (in up to 4 sizes each)
24
     *
25
     * @var PhotoSize[][]
26
     */
27
    private $photos;
28
29
    /**
30
     * @return int
31
     */
32
    public function getTotalCount(): int
33
    {
34
        return $this->total_count;
35
    }
36
37
    /**
38
     * @param int $total_count
39
     */
40
    public function setTotalCount(int $total_count): void
41
    {
42
        $this->total_count = $total_count;
43
    }
44
45
    /**
46
     * @return PhotoSize[][]
47
     */
48
    public function getPhotos(): array
49
    {
50
        return $this->photos;
51
    }
52
53
    /**
54
     * @param PhotoSize[][] $photos
55
     */
56
    public function setPhotos(array $photos): void
57
    {
58
        $this->photos = $photos;
59
    }
60
61
}