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

Item::getNarrative()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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