| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 16 | public function __construct(HashidManager $manager, array $config) |
|
| 34 | { |
||
| 35 | 16 | $this->manager = $manager; |
|
| 36 | |||
| 37 | 16 | if (isset($config['connection'])) { |
|
| 38 | 12 | $this->connection = $config['connection']; |
|
| 39 | } else { |
||
| 40 | 4 | throw new InvalidArgumentException('A connection name must be specified.'); |
|
| 41 | } |
||
| 84 |