| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 30 | public function find(array $criteria) |
|
| 37 | { |
||
| 38 | 30 | $this->initializeFindables(); |
|
| 39 | |||
| 40 | 30 | foreach ($criteria as $entry) { |
|
| 41 | 30 | foreach ($this->findables as $engine) { |
|
| 42 | 30 | if ($engine->canHandle($entry)) { |
|
| 43 | 30 | return $engine; |
|
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | 1 | return $this->getNullObject(); |
|
| 49 | } |
||
| 50 | |||
| 63 |