Discount   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 50
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDisplayName() 0 4 1
A getAmount() 0 4 1
A setDisplayName() 0 6 1
A setAmount() 0 6 1
1
<?php
2
namespace CultureKings\Afterpay\Model\Merchant;
3
4
use CultureKings\Afterpay\Model\Money;
5
6
/**
7
 * Class Discount
8
 *
9
 * @package CultureKings\Afterpay\Model
10
 */
11
class Discount
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $displayName;
17
    /**
18
     * @var Money
19
     */
20
    protected $amount;
21
22
23
    /**
24
     * @return string
25
     */
26
    public function getDisplayName()
27
    {
28
        return $this->displayName;
29
    }
30
31
    /**
32
     * @return Money
33
     */
34
    public function getAmount()
35
    {
36
        return $this->amount;
37
    }
38
39
    /**
40
     * @param string $displayName
41
     * @return $this
42
     */
43
    public function setDisplayName($displayName)
44
    {
45
        $this->displayName = $displayName;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @param Money $amount
52
     * @return $this
53
     */
54
    public function setAmount(Money $amount)
55
    {
56
        $this->amount = $amount;
57
58
        return $this;
59
    }
60
}
61