Completed
Push — master ( 33ee7a...35da7e )
by Gabriel
565:17 queued 500:16
created

BucketLogBucket   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getBucketLog() 0 2 1
A getCampaign() 0 2 1
A getId() 0 2 1
A getName() 0 2 1
A __construct() 0 3 1
A setBucketLog() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\Fundraising\Frontend\BucketTesting\Domain\Model;
6
7
class BucketLogBucket {
8
9
	private int $id;
10
	private BucketLog $bucketLog;
11
	private string $name;
12
	private string $campaign;
13
14
	public function __construct( string $name, string $campaign ) {
15
		$this->name = $name;
16
		$this->campaign = $campaign;
17
	}
18
19
	public function getId(): int {
20
		return $this->id;
21
	}
22
23
	public function getBucketLog(): BucketLog {
24
		return $this->bucketLog;
25
	}
26
27
	public function getName(): string {
28
		return $this->name;
29
	}
30
31
	public function getCampaign(): string {
32
		return $this->campaign;
33
	}
34
35
	public function setBucketLog( BucketLog $bucketLog ): BucketLogBucket {
36
		$this->bucketLog = $bucketLog;
37
		return $this;
38
	}
39
}
40