Completed
Push — master ( 300339...01776c )
by Luke
01:47
created

EpcRatingsObject::setEerPotentialRating()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
1
<?php
2
3
namespace ZpgRtf\Objects;
4
5
class EpcRatingsObject implements \JsonSerializable
6
{
7
    /** @var int */
8
    private $eerCurrentRating;
9
10
    /** @var int */
11
    private $eerPotentialRating;
12
13
    /** @var int */
14
    private $eirCurrentRating;
15
16
    /** @var int */
17
    private $eirPotentialRating;
18
19
    /**
20
     * @return int
21
     */
22 2
    public function getEerCurrentRating()
23
    {
24 2
        return $this->eerCurrentRating;
25
    }
26
27
    /**
28
     * @param int $eerCurrentRating
29
     *
30
     * @return EpcRatingsObject
31
     */
32 1
    public function setEerCurrentRating($eerCurrentRating)
33
    {
34 1
        $this->eerCurrentRating = $eerCurrentRating;
35
36 1
        return $this;
37
    }
38
39
    /**
40
     * @return int
41
     */
42 2
    public function getEerPotentialRating()
43
    {
44 2
        return $this->eerPotentialRating;
45
    }
46
47
    /**
48
     * @param int $eerPotentialRating
49
     *
50
     * @return EpcRatingsObject
51
     */
52 1
    public function setEerPotentialRating($eerPotentialRating)
53
    {
54 1
        $this->eerPotentialRating = $eerPotentialRating;
55
56 1
        return $this;
57
    }
58
59
    /**
60
     * @return int
61
     */
62 2
    public function getEirCurrentRating()
63
    {
64 2
        return $this->eirCurrentRating;
65
    }
66
67
    /**
68
     * @param int $eirCurrentRating
69
     *
70
     * @return EpcRatingsObject
71
     */
72 1
    public function setEirCurrentRating($eirCurrentRating)
73
    {
74 1
        $this->eirCurrentRating = $eirCurrentRating;
75
76 1
        return $this;
77
    }
78
79
    /**
80
     * @return int
81
     */
82 2
    public function getEirPotentialRating()
83
    {
84 2
        return $this->eirPotentialRating;
85
    }
86
87
    /**
88
     * @param int $eirPotentialRating
89
     *
90
     * @return EpcRatingsObject
91
     */
92 1
    public function setEirPotentialRating($eirPotentialRating)
93
    {
94 1
        $this->eirPotentialRating = $eirPotentialRating;
95
96 1
        return $this;
97
    }
98
99
    /** {@inheritDoc} */
100 1
    public function jsonSerialize() {
101
        return [
102 1
            'eer_current_rating' => $this->getEerCurrentRating(),
103 1
            'eer_potential_rating' => $this->getEerPotentialRating(),
104 1
            'eir_current_rating' => $this->getEirCurrentRating(),
105 1
            'eir_potential_rating' => $this->getEirPotentialRating(),
106
        ];
107
    }
108
}
109