| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.1406 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function __construct (Election $mother) |
|
| 28 | { |
||
| 29 | 4 | $this->_selfElection = $mother; |
|
| 30 | |||
| 31 | 4 | if (!is_null(static::$_maxCandidates) && $this->_selfElection->countCandidates() > static::$_maxCandidates) : |
|
| 32 | throw new CondorcetException(101, static::METHOD_NAME[0].' is configured to accept only '.static::$_maxCandidates.' candidates'); |
||
|
1 ignored issue
–
show
|
|||
| 33 | endif; |
||
| 49 |