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.
Completed
Pull Request — master (#59)
by
unknown
05:53
created

FileStatus   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 7
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 77
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getBytesCompleted() 0 4 1
A setBytesCompleted() 0 4 1
A getPriority() 0 4 1
A setPriority() 0 4 1
A isWanted() 0 4 1
A setWanted() 0 4 1
A getMapping() 0 8 1
1
<?php
2
namespace Transmission\Model;
3
4
/**
5
 * @author DnAp <[email protected]>
6
 */
7
class FileStatus extends AbstractModel
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $bytesCompleted;
13
14
    /**
15
     * @var int
16
     */
17
    protected $priority;
18
19
    /**
20
     * @var bool
21
     */
22
    protected $wanted;
23
24
    /**
25
     * @return int
26
     */
27
    public function getBytesCompleted()
28
    {
29
        return $this->bytesCompleted;
30
    }
31
32
    /**
33
     * @param int $bytesCompleted
34
     */
35
    public function setBytesCompleted($bytesCompleted)
36
    {
37
        $this->bytesCompleted = $bytesCompleted;
38
    }
39
40
    /**
41
     * @return int
42
     */
43
    public function getPriority()
44
    {
45
        return $this->priority;
46
    }
47
48
    /**
49
     * @param int $priority
50
     */
51
    public function setPriority($priority)
52
    {
53
        $this->priority = $priority;
54
    }
55
56
    /**
57
     * @return boolean
58
     */
59
    public function isWanted()
60
    {
61
        return $this->wanted;
62
    }
63
64
    /**
65
     * @param boolean $wanted
66
     */
67
    public function setWanted($wanted)
68
    {
69
        $this->wanted = $wanted;
70
    }
71
72
    /**
73
     * {@inheritDoc}
74
     */
75
    public static function getMapping()
76
    {
77
        return array(
78
            'bytesCompleted' => 'bytesCompleted',
79
            'priority' => 'priority',
80
            'wanted' => 'wanted'
81
        );
82
    }
83
}