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

Price   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getAmount() 0 4 1
A getCurrency() 0 4 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