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