| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 8 | public function __construct(array $providedCriteria = []) |
|
| 24 | { |
||
| 25 | 8 | $this->queryCriteria = []; |
|
| 26 | |||
| 27 | 8 | foreach ($providedCriteria as $criteria) { |
|
| 28 | // In this way we will ensure that |
||
| 29 | // every element in array has correct type |
||
| 30 | 5 | $this->addQueryCriteria($criteria); |
|
| 31 | } |
||
| 32 | 8 | } |
|
| 33 | |||
| 65 |