Completed
Push — master ( 88acd9...44b0be )
by Daniel
02:07
created

Endian   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 32
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 stream package
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Stream\Enum;
9
10
/**
11
 * Endian enum
12
 *
13
 * @package GravityMedia\Stream\Enum
14
 */
15
class Endian
16
{
17
    /**
18
     * Big endian
19
     */
20
    const ENDIAN_BIG = 1;
21
22
    /**
23
     * Little endian
24
     */
25
    const ENDIAN_LITTLE = 2;
26
27
    /**
28
     * Valid values
29
     *
30
     * @var int[]
31
     */
32
    protected static $values = [
33
        self::ENDIAN_BIG,
34
        self::ENDIAN_LITTLE
35
    ];
36
37
    /**
38
     * Return valid values
39
     *
40
     * @return int[]
41
     */
42
    public static function values()
43
    {
44
        return static::$values;
45
    }
46
}
47