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

Election   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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