Completed
Push — master ( cf9d14...8fd8d8 )
by Tim
1000:09 queued 997:39
created

CampaignCollection::getCampaigns()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\BannerServer\Entity\BannerSelection;
6
7
/**
8
 * @license GNU GPL v2+
9
 */
10
class CampaignCollection {
11
12
	/**
13
	 * @var Campaign[]
14
	 */
15
	private $campaigns;
16
17
	public function __construct( Campaign ...$campaigns ) {
18
		$this->campaigns = $campaigns;
19
	}
20
21
	public function getCampaigns(): array {
22
		return $this->campaigns;
23
	}
24
}