| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function isValid($values) |
||
| 57 | { |
||
| 58 | foreach ($this->data as $name => $isRequired) { |
||
| 59 | if ($isRequired && !isset($this->$values[$name])) { |
||
| 60 | return false; |
||
| 61 | } |
||
| 62 | |||
| 63 | if (isset($this->$values[$name])) { |
||
| 64 | $result = $this->dataValidatorChain[$name]->isValid($this->$values[$name]); |
||
| 65 | } |
||
| 66 | } |
||
| 67 | |||
| 68 | return true; |
||
| 69 | } |
||
| 88 |