Price   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 26
rs 10
ccs 8
cts 8
cp 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrency() 0 3 1
A getAmount() 0 3 1
A __construct() 0 7 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway;
4
5
class Price
6
{
7
8
	/** @var int */
9
	private $amount;
10
11
	/** @var Currency */
12
	private $currency;
13
14 8
	public function __construct(
15
		int $amount,
16
		Currency $currency
17
	)
18
	{
19 8
		$this->amount = $amount;
20 8
		$this->currency = $currency;
21 8
	}
22
23 5
	public function getAmount(): int
24
	{
25 5
		return $this->amount;
26
	}
27
28 5
	public function getCurrency(): Currency
29
	{
30 5
		return $this->currency;
31
	}
32
33
}
34