| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 46 | public function isValid(Candidate $candidate) |
||
| 47 | { |
||
| 48 | $this->lastError = null; |
||
| 49 | foreach ($this->checks as $check) { |
||
| 50 | if ($check->execute($candidate)) { |
||
| 51 | $this->lastError = $check->getErrorCode(); |
||
| 52 | $this->lastErrorMessage = $check->getLastErrorMessage(); |
||
| 53 | |||
| 54 | return false; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return true; |
||
| 59 | } |
||
| 60 | |||
| 80 | } |