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.

StarsListPayload   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 1
dl 0
loc 77
c 0
b 0
f 0
ccs 17
cts 17
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setUserId() 0 4 1
A getUserId() 0 4 1
A setCount() 0 4 1
A getCount() 0 4 1
A setPage() 0 4 1
A getPage() 0 4 1
A getMethod() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Payload;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 *
17
 * @link Official documentation at https://api.slack.com/methods/stars.list
18
 */
19
class StarsListPayload extends AbstractPayload
20
{
21
    /**
22
     * @var string
23
     */
24
    private $user;
25
26
    /**
27
     * @var int
28
     */
29
    private $count;
30
31
    /**
32
     * @var int
33
     */
34
    private $page;
35
36
    /**
37
     * Show stars by this user. Defaults to the authenticated user.
38
     *
39
     * @param string $userId
40
     */
41 1
    public function setUserId($userId)
42
    {
43 1
        $this->user = $userId;
44 1
    }
45
46
    /**
47
     * Show stars by this user. Defaults to the authenticated user.
48
     *
49
     * @return string
50
     */
51 1
    public function getUserId()
52
    {
53 1
        return $this->user;
54
    }
55
56
    /**
57
     * @param int $count Number of items to return per page.
58
     */
59 1
    public function setCount($count)
60
    {
61 1
        $this->count = $count;
62 1
    }
63
64
    /**
65
     * @return int|null Number of items to return per page.
66
     */
67 1
    public function getCount()
68
    {
69 1
        return $this->count;
70
    }
71
72
    /**
73
     * @param int $page Page number of results to return.
74
     */
75 1
    public function setPage($page)
76
    {
77 1
        $this->page = $page;
78 1
    }
79
80
    /**
81
     * @return int|null Page number of results to return.
82
     */
83 1
    public function getPage()
84
    {
85 1
        return $this->page;
86
    }
87
88
    /**
89
     * @inheritdoc
90
     */
91 1
    public function getMethod()
92
    {
93 1
        return 'stars.list';
94
    }
95
}
96