VersionResourceModel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 62
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getMajor() 0 4 1
A setMajor() 0 6 1
A getMinor() 0 4 1
A setMinor() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
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 Zibios\WrikePhpJmsserializer\Model\Version;
13
14
use JMS\Serializer\Annotation as SA;
15
use Zibios\WrikePhpJmsserializer\Model\AbstractModel;
16
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
17
18
/**
19
 * Version Resource Model.
20
 */
21
class VersionResourceModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Major version number.
25
     *
26
     * @SA\Type("integer")
27
     * @SA\SerializedName("major")
28
     *
29
     * @var int|null
30
     */
31
    protected $major;
32
33
    /**
34
     * Minor version number.
35
     *
36
     * @SA\Type("integer")
37
     * @SA\SerializedName("minor")
38
     *
39
     * @var int|null
40
     */
41
    protected $minor;
42
43
    /**
44
     * @return int|null
45
     */
46 1
    public function getMajor()
47
    {
48 1
        return $this->major;
49
    }
50
51
    /**
52
     * @param int|null $major
53
     *
54
     * @return $this
55
     */
56 1
    public function setMajor($major)
57
    {
58 1
        $this->major = $major;
59
60 1
        return $this;
61
    }
62
63
    /**
64
     * @return int|null
65
     */
66 1
    public function getMinor()
67
    {
68 1
        return $this->minor;
69
    }
70
71
    /**
72
     * @param int|null $minor
73
     *
74
     * @return $this
75
     */
76 1
    public function setMinor($minor)
77
    {
78 1
        $this->minor = $minor;
79
80 1
        return $this;
81
    }
82
}
83