Test Failed
Push — master ( 156c37...627d8f )
by Zbigniew
03:20
created

VersionResourceModel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

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 Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
15
16
/**
17
 * Version Resource Model.
18
 */
19
class VersionResourceModel implements ResourceModelInterface
20
{
21
    /**
22
     * Major version number.
23
     *
24
     * @SA\Type("integer")
25
     * @SA\SerializedName("major")
26
     *
27
     * @var int|null
28
     */
29
    protected $major;
30
31
    /**
32
     * Minor version number.
33
     *
34
     * @SA\Type("integer")
35
     * @SA\SerializedName("minor")
36
     *
37
     * @var int|null
38
     */
39
    protected $minor;
40
41
    /**
42
     * @return int|null
43
     */
44 1
    public function getMajor()
45
    {
46 1
        return $this->major;
47
    }
48
49
    /**
50
     * @param int|null $major
51
     *
52
     * @return $this
53
     */
54 1
    public function setMajor($major)
55
    {
56 1
        $this->major = $major;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return int|null
63
     */
64 1
    public function getMinor()
65
    {
66 1
        return $this->minor;
67
    }
68
69
    /**
70
     * @param int|null $minor
71
     *
72
     * @return $this
73
     */
74 1
    public function setMinor($minor)
75
    {
76 1
        $this->minor = $minor;
77
78 1
        return $this;
79
    }
80
}
81