Completed
Pull Request — master (#19)
by Tim
03:20
created

Visitor::getBucketIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\BannerServer\UseCase\BannerSelection;
6
7
/**
8
 * @license GNU GPL v2+
9
 */
10
class Visitor {
11
12
	private $totalImpressionCount = 0;
13
	private $bucketIdentifier;
14
	private $hasDonated;
15
16 3
	public function __construct( int $totalImpressionCount, ?string $bucketIdentifier, bool $hasDonated ) {
17 3
		$this->totalImpressionCount = $totalImpressionCount;
18 3
		$this->bucketIdentifier = $bucketIdentifier;
19 3
		$this->hasDonated = $hasDonated;
20 3
	}
21
22 1
	public function getTotalImpressionCount(): int {
23 1
		return $this->totalImpressionCount;
24
	}
25
26 1
	public function getBucketIdentifier(): ?string {
27 1
		return $this->bucketIdentifier;
28
	}
29
30 1
	public function hasDonated(): bool {
31 1
		return $this->hasDonated;
32
	}
33
}