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

DefaultRenderingIntent::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 default rendering intent enum
12
 *
13
 * @package GravityMedia\Ghostscript\Enum
14
 */
15
class DefaultRenderingIntent
16
{
17
    /**
18
     * Write no rendering intent to the PDF
19
     */
20
    const __DEFAULT = 'Default';
21
22
    /**
23
     * Perceptual rendering intent
24
     */
25
    const PERCEPTUAL = 'Perceptual';
26
27
    /**
28
     * Saturation rendering intent
29
     */
30
    const SATURATION = 'Saturation';
31
32
    /**
33
     * Relative colorimetric rendering intent
34
     */
35
    const RELATIVE_COLORIMETRIC = 'RelativeColorimetric';
36
37
    /**
38
     * Absolute colorimetric rendering intent
39
     */
40
    const ABSOLUTE_COLORIMETRIC = 'AbsoluteColorimetric';
41
42
    /**
43
     * Available default rendering intent values
44
     *
45
     * @var string[]
46
     */
47
    private static $values = [
48
        self::__DEFAULT,
49
        self::PERCEPTUAL,
50
        self::SATURATION,
51
        self::RELATIVE_COLORIMETRIC,
52
        self::ABSOLUTE_COLORIMETRIC
53
    ];
54
55
    /**
56
     * Get available default rendering intent values
57
     *
58
     * @return string[]
59
     */
60
    public static function values()
61
    {
62
        return self::$values;
63
    }
64
}
65