GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

GetFile   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setFileId() 0 5 1
A getFileId() 0 3 1
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "getFile" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Api\Method;
12
13
use Teebot\Api\Entity\File;
14
15
class GetFile extends AbstractMethod
16
{
17
    const NAME          = 'getFile';
18
19
    const RETURN_ENTITY = File::class;
20
21
    protected $file_id;
22
23
    protected $supportedProperties = [
24
        'file_id' => true
25
    ];
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getFileId()
31
    {
32
        return $this->file_id;
33
    }
34
35
    /**
36
     * @param mixed $file_id
37
     *
38
     * @return $this
39
     */
40
    public function setFileId($file_id)
41
    {
42
        $this->file_id = $file_id;
43
44
        return $this;
45
    }
46
}
47