Passed
Push — main ( 7189b9...23cbe4 )
by Vasil
03:17
created

MoneyTransferPremium   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 72
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getAmount() 0 3 1
A setPayer() 0 5 1
A getAmountLocal() 0 3 1
A getPayer() 0 3 1
A setAmountLocal() 0 5 1
A setAmount() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Service\Shipment;
6
7
/**
8
 * Class MoneyTransferPremium
9
 *
10
 * @author Vasil Dakov <[email protected]>
11
 * @copyright 2009-2022 Neutrino.bg
12
 * @version 1.0
13
 */
14
class MoneyTransferPremium
15
{
16
    /**
17
     * @var float
18
     */
19
    private float $amount;
20
21
    /**
22
     * @var float
23
     */
24
    private float $amountLocal;
25
26
    /**
27
     * @var string
28
     */
29
    private string $payer;
30
31
    /**
32
     * @param float $amount
33
     * @return $this
34
     */
35 1
    public function setAmount(float $amount): self
36
    {
37 1
        $this->amount = $amount;
38
39 1
        return $this;
40
    }
41
42
    /**
43
     * @return float
44
     */
45 1
    public function getAmount(): float
46
    {
47 1
        return $this->amount;
48
    }
49
50
    /**
51
     * @param float $amountLocal
52
     * @return $this
53
     */
54 1
    public function setAmountLocal(float $amountLocal): self
55
    {
56 1
        $this->amountLocal = $amountLocal;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return float
63
     */
64 1
    public function getAmountLocal(): float
65
    {
66 1
        return $this->amountLocal;
67
    }
68
69
    /**
70
     * @param string $payer
71
     * @return $this
72
     */
73 1
    public function setPayer(string $payer): self
74
    {
75 1
        $this->payer = $payer;
76
77 1
        return $this;
78
    }
79
80
    /**
81
     * @return string
82
     */
83 1
    public function getPayer(): string
84
    {
85 1
        return $this->payer;
86
    }
87
}
88