MoneyTransferPremium   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 51
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
 * @psalm-suppress PropertyNotSetInConstructor
13
 */
14
class MoneyTransferPremium
15
{
16
    private ?float $amount = null;
17
18
    private ?float $amountLocal = null;
19
20
    private ?string $payer = null;
21
22
    /**
23
     * @return $this
24
     */
25 1
    public function setAmount(float $amount): self
26
    {
27 1
        $this->amount = $amount;
28
29 1
        return $this;
30
    }
31
32 1
    public function getAmount(): ?float
33
    {
34 1
        return $this->amount;
35
    }
36
37
    /**
38
     * @return $this
39
     */
40 1
    public function setAmountLocal(float $amountLocal): self
41
    {
42 1
        $this->amountLocal = $amountLocal;
43
44 1
        return $this;
45
    }
46
47 1
    public function getAmountLocal(): ?float
48
    {
49 1
        return $this->amountLocal;
50
    }
51
52
    /**
53
     * @return $this
54
     */
55 1
    public function setPayer(string $payer): self
56
    {
57 1
        $this->payer = $payer;
58
59 1
        return $this;
60
    }
61
62 1
    public function getPayer(): ?string
63
    {
64 1
        return $this->payer;
65
    }
66
}
67