ByteOrder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 38
ccs 2
cts 2
cp 1
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;
9
10
/**
11
 * Byte order class.
12
 *
13
 * @package GravityMedia\Stream
14
 */
15
class ByteOrder
16
{
17
    /**
18
     * Machine endian
19
     */
20
    const MACHINE_ENDIAN = 0;
21
22
    /**
23
     * Big endian
24
     */
25
    const BIG_ENDIAN = 1;
26
27
    /**
28
     * Little endian
29
     */
30
    const LITTLE_ENDIAN = 2;
31
32
    /**
33
     * Valid values
34
     *
35
     * @var int[]
36
     */
37
    protected static $values = [
38
        self::MACHINE_ENDIAN,
39
        self::BIG_ENDIAN,
40
        self::LITTLE_ENDIAN
41
    ];
42
43
    /**
44
     * Return valid values
45
     *
46
     * @return int[]
47
     */
48 2
    public static function values()
49
    {
50 2
        return static::$values;
51
    }
52
}
53