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