Completed
Pull Request — master (#16)
by Josef
02:45
created

Amount::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway;
4
5
class Amount
6
{
7
8
	/**
9
	 * @var int
10
	 */
11
	private $value;
12
13
	/**
14
	 * @var Currency
15
	 */
16
	private $currency;
17
18
	public function __construct(
19
		int $value,
20
		Currency $currency
21
	)
22
	{
23
		$this->value = $value;
24
		$this->currency = $currency;
25
	}
26
27
	public function getValue(): int
28
	{
29
		return $this->value;
30
	}
31
32
	public function getCurrency(): Currency
33
	{
34
		return $this->currency;
35
	}
36
37
}
38