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