ImageDownsampleType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 44
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A values() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Ghostscript package
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Ghostscript\Enum;
9
10
/**
11
 * The image downsample type enum
12
 *
13
 * @package GravityMedia\Ghostscript\Enum
14
 */
15
class ImageDownsampleType
16
{
17
    /**
18
     * Average groups of samples to get the downsampled value
19
     */
20
    const AVERAGE = 'Average';
21
22
    /**
23
     * Use bicubic interpolation on a group of samples to get the downsampled value
24
     */
25
    const BICUBIC = 'Bicubic';
26
27
    /**
28
     * Pick the center sample from a group of samples to get the downsampled value
29
     */
30
    const SUBSAMPLE = 'Subsample';
31
32
    /**
33
     * Do not downsample images
34
     */
35
    const NONE = 'None';
36
37
    /**
38
     * Available image downsample type values
39
     *
40
     * @var string[]
41
     */
42
    private static $values = [
43
        self::AVERAGE,
44
        self::BICUBIC,
45
        self::SUBSAMPLE,
46
        self::NONE,
47
    ];
48
49
    /**
50
     * Get available image downsample type values
51
     *
52
     * @return string[]
53
     */
54 2
    public static function values()
55
    {
56 2
        return self::$values;
57
    }
58
}
59