Completed
Push — master ( a23f84...2e53d7 )
by Michael
04:05
created

Election::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
namespace Michaelc\Voting\STV;
4
5
class Election
6
{
7
	protected $candidateCount;
8
	protected $winnersCount;
9
10
	protected $candidates;
11
	protected $ballots;
12
13
	public function __construct(int $winnersCount, array $candidates, array $ballots)
14
	{
15
		$this->winnersCount = $winnersCount;
16
		$this->candidates = $candidates;
17
		$this->ballots = $ballots;
18
	}
19
}
20