ChatPhoto::getBigFileId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace TelegramBot\Api\Types;
4
5
use TelegramBot\Api\BaseType;
6
7
class ChatPhoto extends BaseType
8
{
9
    /**
10
     * {@inheritdoc}
11
     *
12
     * @var array
13
     */
14
    protected static $requiredParams = ['small_file_id', 'big_file_id'];
15
16
    /**
17
     * {@inheritdoc}
18
     *
19
     * @var array
20
     */
21
    protected static $map = [
22
        'small_file_id' => true,
23
        'big_file_id' => true,
24
    ];
25
26
    /**
27
     * Unique file identifier of small (160x160) chat photo. This file_id can be used only for photo download.
28
     *
29
     * @var string
30
     */
31
    protected $smallFileId;
32
33
    /**
34
     * Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download.
35
     *
36
     * @var string
37
     */
38
    protected $bigFileId;
39
40
    /**
41
     * @return string
42
     */
43
    public function getSmallFileId()
44
    {
45
        return $this->smallFileId;
46
    }
47
48
    /**
49
     * @param string $smallFileId
50
     * @return void
51 2
     */
52
    public function setSmallFileId($smallFileId)
53 2
    {
54 2
        $this->smallFileId = $smallFileId;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getBigFileId()
61
    {
62
        return $this->bigFileId;
63
    }
64
65
    /**
66
     * @param string $bigFileId
67 2
     * @return void
68
     */
69 2
    public function setBigFileId($bigFileId)
70 2
    {
71
        $this->bigFileId = $bigFileId;
72
    }
73
}
74