Completed
Push — master ( b59c0c...c68fa7 )
by Josef
08:24
created

Price::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 1
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 4
	public function __construct(
19
		int $amount,
20
		Currency $currency
21
	)
22
	{
23 4
		$this->amount = $amount;
24 4
		$this->currency = $currency;
25 4
	}
26
27 3
	public function getAmount(): int
28
	{
29 3
		return $this->amount;
30
	}
31
32 3
	public function getCurrency(): Currency
33
	{
34 3
		return $this->currency;
35
	}
36
37
}
38