| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __construct(array $config = []) { |
||
| 28 | if (isset($config['driver']) && !in_array($config['driver'], ['gd', 'imagick'])) { |
||
| 29 | throw new InvalidConfigurationException('Invalid driver. Possible drivers are `gd` and `imagick`'); |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->config = array_merge($this->config, $config); |
||
| 33 | } |
||
| 34 | |||
| 57 |