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.

FreeSpace::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Transmission\Model;
3
4
/**
5
 * @author Joysen Chellem
6
 */
7
class FreeSpace extends AbstractModel
8
{
9
    /**
10
     * @var string
11
     */
12
    private $path;
13
14
    /**
15
     * @var integer
16
     */
17
    private $size;
18
19
    /**
20
     * Gets the value of path.
21
     *
22
     * @return string
23
     */
24
    public function getPath()
25
    {
26
        return $this->path;
27
    }
28
29
    /**
30
     * Sets the value of path.
31
     *
32
     * @param string $path the path
33
     */
34
    public function setPath($path)
35
    {
36
        $this->path = $path;
37
    }
38
39
    /**
40
     * Gets the value of size.
41
     *
42
     * @return integer
43
     */
44
    public function getSize()
45
    {
46
        return $this->size;
47
    }
48
49
    /**
50
     * Sets the value of size.
51
     *
52
     * @param integer $size the size
53
     */
54
    public function setSize($size)
55
    {
56
        $this->size = $size;
57
    }
58
59
    /**
60
     * {@inheritDoc}
61
     */
62
    public static function getMapping()
63
    {
64
        return array(
65
            'path' => 'path',
66
            'size-bytes' => 'size',
67
        );
68
    }
69
}
70