Completed
Push — master ( de0635...69f45f )
by Leith
17:25
created

Item   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 2
cbo 1
dl 0
loc 50
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getAdditionalReference() 0 4 1
A setAdditionalReference() 0 4 1
A getFundCode() 0 4 1
A setFundCode() 0 4 1
A getNarrative() 0 4 1
A setNarrative() 0 4 1
1
<?php
2
3
namespace Omnipay\CapitaPay360;
4
5
use Omnipay\Common\Item as BaseItem;
6
7
/**
8
 * Capita Pay360 sale line item
9
 */
10
class Item extends BaseItem
11
{
12
    /**
13
     * Get the item additional reference
14
     */
15
    public function getAdditionalReference()
16
    {
17
        return $this->getParameter('additionalReference');
18
    }
19
20
    /**
21
     * Set the item additional reference
22
     */
23
    public function setAdditionalReference($value)
24
    {
25
        return $this->setParameter('additionalReference', substr($value, 0, 50));
26
    }
27
28
    /**
29
     * Get the item fund code
30
     */
31
    public function getFundCode()
32
    {
33
        return $this->getParameter('fundCode');
34
    }
35
36
    /**
37
     * Set the item fund code
38
     */
39
    public function setFundCode($value)
40
    {
41
        return $this->setParameter('fundCode', substr($value, 0, 5));
42
    }
43
44
    /**
45
     * Get the item narrative
46
     */
47
    public function getNarrative()
48
    {
49
        return $this->getParameter('narrative');
50
    }
51
52
    /**
53
     * Set the item narrative
54
     */
55
    public function setNarrative($value)
56
    {
57
        return $this->setParameter('narrative', substr($value, 0, 50));
58
    }
59
}
60