Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 5 | public function __construct(array $config) |
|
25 | { |
||
26 | 5 | if (! isset($config['prime'], $config['inverse'])) { |
|
27 | 3 | throw new InvalidArgumentException('prime and inverse must be specified.'); |
|
28 | } |
||
29 | |||
30 | 2 | $this->optimus = new Optimus( |
|
31 | 2 | $config['prime'], |
|
32 | 2 | $config['inverse'], |
|
33 | 2 | isset($config['random']) ? $config['random'] : 0 |
|
34 | 2 | ); |
|
35 | 2 | } |
|
36 | |||
59 |