TaxLine   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 77
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 4 1
A setTitle() 0 6 1
A getPrice() 0 4 1
A setPrice() 0 6 1
A getRate() 0 4 1
A setRate() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\Order;
13
14
class TaxLine
15
{
16
    /**
17
     * @var string
18
     */
19
    protected $title;
20
21
    /**
22
     * @var float
23
     */
24
    protected $price;
25
26
    /**
27
     * @var float
28
     */
29
    protected $rate;
30
31
    /**
32
     * @return string
33
     */
34
    public function getTitle()
35
    {
36
        return $this->title;
37
    }
38
39
    /**
40
     * @param string $title
41
     *
42
     * @return TaxLine
43
     */
44
    public function setTitle($title)
45
    {
46
        $this->title = $title;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return float
53
     */
54
    public function getPrice()
55
    {
56
        return $this->price;
57
    }
58
59
    /**
60
     * @param float $price
61
     *
62
     * @return TaxLine
63
     */
64
    public function setPrice($price)
65
    {
66
        $this->price = $price;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return float
73
     */
74
    public function getRate()
75
    {
76
        return $this->rate;
77
    }
78
79
    /**
80
     * @param float $rate
81
     *
82
     * @return TaxLine
83
     */
84
    public function setRate($rate)
85
    {
86
        $this->rate = $rate;
87
88
        return $this;
89
    }
90
}