Completed
Push — master ( d7633b...7db5b7 )
by Daniel
02:36
created

PdfSettings::values()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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 PDF settings enum
12
 *
13
 * @package GravityMedia\Ghostscript\Enum
14
 */
15
class PdfSettings
16
{
17
    /**
18
     * Output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file
19
     */
20
    const __DEFAULT = 'default';
21
22
    /**
23
     * Low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting
24
     */
25
    const SCREEN = 'screen';
26
27
    /**
28
     * Medium-resolution output similar to the Acrobat Distiller "eBook" setting
29
     */
30
    const EBOOK = 'ebook';
31
32
    /**
33
     * Output similar to the Acrobat Distiller "Print Optimized" setting
34
     */
35
    const PRINTER = 'printer';
36
37
    /**
38
     * Output similar to Acrobat Distiller "Prepress Optimized" setting
39
     */
40
    const PREPRESS = 'prepress';
41
42
    /**
43
     * Available PDF settings values
44
     *
45
     * @var string[] $values
46
     */
47
    private static $values = [
48
        self::__DEFAULT,
49
        self::SCREEN,
50
        self::EBOOK,
51
        self::PRINTER,
52
        self::PREPRESS
53
    ];
54
55
    /**
56
     * Get available PDF settings values
57
     *
58
     * @return string[]
59
     */
60 3
    public static function values()
61
    {
62 3
        return self::$values;
63
    }
64
}
65