Below::setAbovePrice()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
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 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
4
namespace floor12\DalliApi\Models;
5
6
7
class Below extends BaseXmlObject
8
{
9
    /** @var float */
10
    public $_above_price;
11
    /** @var float */
12
    public $_return_price;
13
    /** @var int */
14
    public $_below;
15
    /** @var float */
16
    public $_below_sum;
17
    /** @var float */
18
    public $_price;
19
20
    /**
21
     * @param float $above_price
22
     * @return Below
23
     * @return Below
24
     */
25 2
    public function setAbovePrice(float $above_price): self
26
    {
27 2
        $this->_above_price = $above_price;
28 2
        return $this;
29
    }
30
31
    /**
32
     * @param float $return_price
33
     * @return Below
34
     * @return Below
35
     */
36 1
    public function setReturnPrice(float $return_price): self
37
    {
38 1
        $this->_return_price = $return_price;
39 1
        return $this;
40
    }
41
42
    /**
43
     * @param int $below
44
     * @return Below
45
     * @return Below
46
     */
47 2
    public function setBelow(int $below): self
48
    {
49 2
        $this->_below = $below;
50 2
        return $this;
51
    }
52
53
    /**
54
     * @param float $below_sum
55
     * @return Below
56
     * @return Below
57
     */
58 1
    public function setBelowSum(float $below_sum): self
59
    {
60 1
        $this->_below_sum = $below_sum;
61 1
        return $this;
62
    }
63
64
    /**
65
     * @param float $price
66
     * @return Below
67
     * @return Below
68
     */
69 3
    public function setPrice(float $price): self
70
    {
71 3
        $this->_price = $price;
72 3
        return $this;
73
    }
74
75
}
76