| Conditions | 5 |
| Paths | 5 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function evaluate($value) |
||
| 52 | { |
||
| 53 | if ($this->count() == 0) { |
||
| 54 | return true; |
||
| 55 | } |
||
| 56 | |||
| 57 | $count = 0; |
||
| 58 | /** @var bool $result */ |
||
| 59 | foreach ($this->evaluationIterator($value) as $result) { |
||
| 60 | if ($result) { |
||
| 61 | ++$count; |
||
| 62 | if ($this->count() == $count) { |
||
| 63 | return true; |
||
| 64 | } |
||
| 65 | } |
||
| 66 | } |
||
| 67 | |||
| 68 | return false; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |