ShipmentPriceAmount::setPercent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
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 ShipmentPriceAmount.
9
 *
10
 * @author Vasil Dakov <[email protected]>
11
 * @copyright 2009-2022 Neutrino.bg
12
 *
13
 * @version 1.0
14
 */
15
class ShipmentPriceAmount
16
{
17
    private ?float $amount = null;
18
19
    private ?float $percent = null;
20
21
    private ?float $vatPercent = null;
22
23 1
    public function getAmount(): ?float
24
    {
25 1
        return $this->amount;
26
    }
27
28 1
    public function setAmount(float $amount): void
29
    {
30 1
        $this->amount = $amount;
31
    }
32
33 1
    public function getPercent(): ?float
34
    {
35 1
        return $this->percent;
36
    }
37
38 1
    public function setPercent(float $percent): void
39
    {
40 1
        $this->percent = $percent;
41
    }
42
43 1
    public function getVatPercent(): ?float
44
    {
45 1
        return $this->vatPercent;
46
    }
47
48 1
    public function setVatPercent(float $vatPercent): void
49
    {
50 1
        $this->vatPercent = $vatPercent;
51
    }
52
}
53