Amount   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrencyCode() 0 3 1
A getValue() 0 3 1
A __construct() 0 4 1
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