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