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.
Passed
Pull Request — master (#7)
by Alexander
49:36 queued 24:33
created

Version::setVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace LeadCommerce\Shopware\SDK\Entity;
4
5
/**
6
 * Class Version
7
 */
8
class Version extends Base
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $version;
14
    /**
15
     * @var string
16
     */
17
    protected $revision;
18
19
    /**
20
     * @return string
21
     */
22
    public function getVersion()
23
    {
24
        return $this->version;
25
    }
26
27
    /**
28
     * @param string $version
29
     *
30
     * @return Version
31
     */
32
    public function setVersion($version)
33
    {
34
        $this->version = $version;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getRevision()
43
    {
44
        return $this->revision;
45
    }
46
47
    /**
48
     * @param string $revision
49
     *
50
     * @return Version
51
     */
52
    public function setRevision($revision)
53
    {
54
        $this->revision = $revision;
55
56
        return $this;
57
    }
58
}
59