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

PdfSettings   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

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 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
    public static function values()
61
    {
62
        return self::$values;
63
    }
64
}
65