MoneyTransferPremium::setPayer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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