Completed
Push — master ( 80b762...b17462 )
by Bjørn
05:19
created

ImagickBinary   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A checkOperationality() 0 4 1
A doActualConvert() 0 3 1
1
<?php
2
3
namespace WebPConvert\Convert\Converters;
4
5
use WebPConvert\Convert\Converters\AbstractConverter;
6
use WebPConvert\Convert\Exceptions\ConversionFailedException;
7
8
/**
9
 * Non-functional converter, just here to tell you that it has been renamed.
10
 *
11
 * @package    WebPConvert
12
 * @author     Bjørn Rosell <[email protected]>
13
 * @since      Class available since Release 2.0.0
14
 */
15
class ImagickBinary extends AbstractConverter
16
{
17
    public function checkOperationality()
18
    {
19
        throw new ConversionFailedException(
20
            'This converter has changed ID from "imagickbinary" to "imagemagick". You need to change!'
21
        );
22
    }
23
24
    protected function doActualConvert()
25
    {
26
        $this->checkOperationality();
27
    }
28
}
29