Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
14 | class ImagineFactory |
||
15 | { |
||
16 | /* Available driver */ |
||
17 | public const GD = 'gd'; |
||
18 | public const IMAGICK = 'imagick'; |
||
19 | public const GMAGICK = 'gmagick'; |
||
20 | |||
21 | /** |
||
22 | * Create imagine object for given driver |
||
23 | * @param string $type |
||
24 | * @return ImagineInterface |
||
25 | * @throws \Imagine\Exception\RuntimeException |
||
26 | * @throws InvalidConfigException |
||
27 | */ |
||
28 | public static function get(string $type): ImagineInterface |
||
41 | } |