Total Complexity | 7 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 76.92% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Xbm extends AFormat |
||
16 | { |
||
17 | /** |
||
18 | * @param IIMTranslations|null $lang |
||
19 | * @throws ImagesException |
||
20 | */ |
||
21 | 1 | public function __construct(?IIMTranslations $lang = null) |
|
22 | { |
||
23 | 1 | $this->setLang($lang); |
|
24 | 1 | if (!function_exists('imagecreatefromxbm') || !function_exists('imagexbm')) { |
|
25 | // @codeCoverageIgnoreStart |
||
26 | throw new ImagesException($this->getLang()->imImageMagicLibNotPresent()); |
||
27 | } |
||
28 | // @codeCoverageIgnoreEnd |
||
29 | 1 | } |
|
30 | |||
31 | 1 | public function load(string $path) |
|
40 | } |
||
41 | |||
42 | 1 | public function save(string $path, $resource): void |
|
47 | } |
||
48 | // @codeCoverageIgnoreEnd |
||
51 |