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.

GetUserProfilePhotos::getLimit()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 3
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 3
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "getUserProfilePhotos" 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\UserProfilePhotos;
14
15 View Code Duplication
class GetUserProfilePhotos extends AbstractMethod
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
{
17
    const NAME          = 'getUserProfilePhotos';
18
19
    const RETURN_ENTITY = UserProfilePhotos::class;
20
21
    protected $user_id;
22
23
    protected $offset;
24
25
    protected $limit;
26
27
    protected $supportedProperties = [
28
        'user_id' => true,
29
        'offset'  => false,
30
        'limit'   => false
31
    ];
32
33
    /**
34
     * @return mixed
35
     */
36
    public function getUserId()
37
    {
38
        return $this->user_id;
39
    }
40
41
    /**
42
     * @param mixed $user_id
43
     *
44
     * @return $this
45
     */
46
    public function setUserId($user_id)
47
    {
48
        $this->user_id = $user_id;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return mixed
55
     */
56
    public function getOffset()
57
    {
58
        return $this->offset;
59
    }
60
61
    /**
62
     * @param mixed $offset
63
     *
64
     * @return $this
65
     */
66
    public function setOffset($offset)
67
    {
68
        $this->offset = $offset;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return mixed
75
     */
76
    public function getLimit()
77
    {
78
        return $this->limit;
79
    }
80
81
    /**
82
     * @param mixed $limit
83
     *
84
     * @return $this
85
     */
86
    public function setLimit($limit)
87
    {
88
        $this->limit = $limit;
89
90
        return $this;
91
    }
92
}
93