Completed
Push — master ( 0ae2b7...d7633b )
by Daniel
03:14
created

TransferFunctionInfo::values()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
nc 1
cc 1
eloc 2
nop 0
crap 2
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 transfer function info enum
12
 *
13
 * @package GravityMedia\Ghostscript\Enum
14
 */
15
class TransferFunctionInfo
16
{
17
    /**
18
     * Preserve transfer functions (pass into the PDF file)
19
     */
20
    const PRESERVE = 'Preserve';
21
22
    /**
23
     * Ignore transfer functions (do not pass into the PDF file)
24
     */
25
    const REMOVE = 'Remove';
26
27
    /**
28
     * Apply transfer functions to color values
29
     */
30
    const APPLY = 'Apply';
31
32
    /**
33
     * Available transfer function info values
34
     *
35
     * @var string[]
36
     */
37
    private static $values = [
38
        self::PRESERVE,
39
        self::REMOVE,
40
        self::APPLY
41
    ];
42
43
    /**
44
     * Get available transfer function info values
45
     *
46
     * @return string[]
47
     */
48
    public static function values()
49
    {
50
        return self::$values;
51
    }
52
}
53