Completed
Pull Request — master (#16)
by Josef
05:49
created

Price::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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