Amount::getCurrencyCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
final class Amount
11
{
12
    /**
13
     * @var int
14
     * @SerializedName("Value")
15
     * @Type("integer")
16
     */
17
    private $value;
18
19
    /**
20
     * @var string
21
     * @SerializedName("CurrencyCode")
22
     */
23
    private $currencyCode;
24
25
    public function __construct(int $value, string $currencyCode)
26
    {
27
        $this->value = $value;
28
        $this->currencyCode = $currencyCode;
29
    }
30
31
    public function getValue(): int
32
    {
33
        return $this->value;
34
    }
35
36
    public function getCurrencyCode(): string
37
    {
38
        return $this->currencyCode;
39
    }
40
}
41