Item   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 46
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getPriceNet() 0 4 1
A setId() 0 4 1
A setPriceNet() 0 4 1
1
<?php
2
3
namespace Omnipay\BillPay;
4
5
/**
6
 * Class Item
7
 *
8
 * @author    Andreas Lange <[email protected]>
9
 * @copyright 2016, Connox GmbH
10
 * @license   MIT
11
 */
12
class Item extends \Omnipay\Common\Item implements ItemInterface
13
{
14
    /**
15
     * ID of the item
16
     *
17
     * @return string
18
     */
19 10
    public function getId()
20
    {
21 10
        return $this->getParameter('id');
22
    }
23
24
    /**
25
     * Price of the item (net amount, excluding taxes)
26
     *
27
     * @return string
28
     */
29 10
    public function getPriceNet()
30
    {
31 10
        return $this->getParameter('priceNet');
32
    }
33
34
    /**
35
     * Sets the ID of the item
36
     *
37
     * @param string $value
38
     *
39
     * @return Item
40
     */
41 48
    public function setId($value)
42
    {
43 48
        return $this->setParameter('id', $value);
44
    }
45
46
    /**
47
     * Sets the price of the item (net amount, excluding taxes)
48
     *
49
     * @param string $value
50
     *
51
     * @return string
52
     */
53 48
    public function setPriceNet($value)
54
    {
55 48
        return $this->setParameter('priceNet', $value);
56
    }
57
}
58