Completed
Push — master ( 7d37a2...fea370 )
by Nikolay
06:21
created

SetChatPhotoMethod   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 20
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Greenplugin\TelegramBot\Method;
6
7
use Greenplugin\TelegramBot\Method\Traits\ChatIdVariableTrait;
8
use Greenplugin\TelegramBot\Type\InputFileType;
9
10
/**
11
 * Class SetChatPhotoMethod.
12
 *
13
 * @see https://core.telegram.org/bots/api#setchatphoto
14
 */
15
class SetChatPhotoMethod
16
{
17
    use ChatIdVariableTrait;
18
    /**
19
     * New chat photo, uploaded using multipart/form-data.
20
     *
21
     * @var InputFileType
22
     */
23
    public $photo;
24
25
    /**
26
     * SetChatPhotoMethod constructor.
27
     *
28
     * @param int|string    $chatId
29
     * @param InputFileType $photo
30
     */
31
    public function __construct($chatId, InputFileType $photo)
32
    {
33
        $this->chatId = $chatId;
34
        $this->photo = $photo;
35
    }
36
}
37