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 (#7)
by Alexander
68:29 queued 43:35
created

Version   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 4
c 2
b 1
f 1
lcom 0
cbo 1
dl 0
loc 51
ccs 0
cts 18
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRevision() 0 4 1
A getVersion() 0 4 1
A setVersion() 0 6 1
A setRevision() 0 6 1
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