Type   A
last analyzed

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 Magickly project.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Magickly\Enum;
9
10
/**
11
 * The type enum.
12
 *
13
 * @package GravityMedia\Magickly\Enum
14
 */
15
class Type
16
{
17
    /**
18
     * Bilevel type.
19
     */
20
    const TYPE_BILEVEL = 1;
21
22
    /**
23
     * Grayscale type.
24
     */
25
    const TYPE_GRAYSCALE = 2;
26
27
    /**
28
     * Palette type.
29
     */
30
    const TYPE_PALETTE = 3;
31
32
    /**
33
     * Truecolor type.
34
     */
35
    const TYPE_TRUECOLOR = 4;
36
37
    /**
38
     * Colorseparation type.
39
     */
40
    const TYPE_COLORSEPARATION = 5;
41
42
    /**
43
     * Valid values
44
     *
45
     * @var int[]
46
     */
47
    protected static $values = [
48
        self::TYPE_BILEVEL,
49
        self::TYPE_GRAYSCALE,
50
        self::TYPE_PALETTE,
51
        self::TYPE_TRUECOLOR,
52
        self::TYPE_COLORSEPARATION,
53
    ];
54
55
    /**
56
     * Return valid values
57
     *
58
     * @return int[]
59
     */
60
    public static function values()
61
    {
62
        return static::$values;
63
    }
64
}
65