Completed
Push — id3-metadata-objects ( 205ec7...3af9ca )
by Daniel
15:39
created

Version   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 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 38
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A values() 0 4 1
1
<?php
2
/**
3
 * This file is part of the ID3 project.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Metadata\ID3v2\Enum;
9
10
/**
11
 * Version enum
12
 *
13
 * @package GravityMedia\Metadata\ID3v2\Enum
14
 */
15
class Version
16
{
17
    /**
18
     * Tag version 2.2
19
     */
20
    const VERSION_22 = 2;
21
22
    /**
23
     * Tag version 2.3
24
     */
25
    const VERSION_23 = 3;
26
27
    /**
28
     * Tag version 2.4
29
     */
30
    const VERSION_24 = 4;
31
32
    /**
33
     * Valid versions
34
     *
35
     * @var int[]
36
     */
37
    protected static $values = [
38
        self::VERSION_22,
39
        self::VERSION_23,
40
        self::VERSION_24
41
    ];
42
43
    /**
44
     * Return valid versions
45
     *
46
     * @return int[]
47
     */
48
    public static function values()
49
    {
50
        return static::$values;
51
    }
52
}
53