Completed
Push — master ( c760c9...0378e2 )
by Baldur
02:05
created

LineItem::setProductIdentifier()   A

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 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace LAShowroom\TaxJarBundle\Model\Transaction;
4
5
use LAShowroom\TaxJarBundle\Model\LineItem as BaseLineItem;
6
use Webmozart\Assert\Assert;
7
8
class LineItem extends BaseLineItem
9
{
10
    /**
11
     * @var string
12
     */
13
    private $productIdentifier;
14
15
    /**
16
     * @var string
17
     */
18
    private $description;
19
20
    /**
21
     * @var float
22
     */
23
    private $salesTax;
24
25
    /**
26
     * @return string
27
     */
28 2
    public function getDescription()
29
    {
30 2
        return $this->description;
31
    }
32
33
    /**
34
     * @param string $description
35
     */
36 4
    public function setDescription($description)
37
    {
38 4
        $this->description = $description;
39 4
    }
40
41
    /**
42
     * @return string
43
     */
44 2
    public function getProductIdentifier()
45
    {
46 2
        return $this->productIdentifier;
47
    }
48
49
    /**
50
     * @param string $productIdentifier
51
     */
52 4
    public function setProductIdentifier($productIdentifier)
53
    {
54 4
        $this->productIdentifier = $productIdentifier;
55 4
    }
56
57
    /**
58
     * @return float
59
     */
60 2
    public function getSalesTax()
61
    {
62 2
        return $this->salesTax;
63
    }
64
65
    /**
66
     * @param float $salesTax
67
     */
68 4
    public function setSalesTax($salesTax)
69
    {
70 4
        Assert::float($salesTax);
71
72 4
        $this->salesTax = $salesTax;
73 4
    }
74
}
75