Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
49 | protected function getOperationFromConfig($config) |
||
50 | { |
||
51 | foreach ($this->operationFactories as $factory) { |
||
52 | if ($factory->supports($config['operation'], $config['options'])) { |
||
53 | return $factory->getOperation($config['operation'], $config['options']); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | // TODO handle as error. |
||
58 | return null; |
||
59 | } |
||
61 |