Completed
Push — id3-metadata-objects ( 491068...1cf97b )
by Daniel
09:08
created

PictureType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 146
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 146
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 ID3 project.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Metadata\ID3v2;
9
10
/**
11
 * ID3v2 picture type class.
12
 *
13
 * @package GravityMedia\Metadata\ID3v2
14
 */
15
class PictureType
16
{
17
    /**
18
     * Other.
19
     */
20
    const OTHER = 0;
21
22
    /**
23
     * 32x32 pixels 'file icon' (PNG only).
24
     */
25
    const FILE_ICON_PNG = 1;
26
27
    /**
28
     * Other file icon.
29
     */
30
    const FILE_ICON_OTHER = 2;
31
32
    /**
33
     * Cover (front).
34
     */
35
    const COVER_FRONT = 3;
36
37
    /**
38
     * Cover (back).
39
     */
40
    const COVER_BACK = 4;
41
42
    /**
43
     * Leaflet page.
44
     */
45
    const LEAFLET_PAGE = 5;
46
47
    /**
48
     * Media (e.g. label side of CD).
49
     */
50
    const MEDIA = 6;
51
52
    /**
53
     * Lead artist/lead performer/soloist.
54
     */
55
    const LEAD_ARTIST_OR_LEAD_PERFORMER_OR_SOLOIST = 7;
56
57
    /**
58
     * Artist/performer.
59
     */
60
    const ARTIST_OR_PERFORMER = 8;
61
62
    /**
63
     * Conductor.
64
     */
65
    const CONDUCTOR = 9;
66
67
    /**
68
     * Band/Orchestra.
69
     */
70
    const BAND_OR_ORCHESTRA = 9;
71
72
    /**
73
     * Composer.
74
     */
75
    const COMPOSER = 10;
76
77
    /**
78
     * Lyricist/text writer.
79
     */
80
    const LYRICIST_OR_TEXT_WRITER = 11;
81
82
    /**
83
     * Recording location.
84
     */
85
    const RECORDING_LOCATION = 12;
86
87
    /**
88
     * During recording.
89
     */
90
    const DURING_RECORDING = 13;
91
92
    /**
93
     * During performance.
94
     */
95
    const DURING_PERFORMANCE = 14;
96
97
    /**
98
     * Movie/video screen capture.
99
     */
100
    const MOVIE_OR_VIDEO_SCREEN_CAPTURE = 15;
101
102
    /**
103
     * A bright coloured fish.
104
     */
105
    const A_BRIGHT_COLOURED_FISH = 16;
106
107
    /**
108
     * Illustration.
109
     */
110
    const ILLUSTRATION = 17;
111
112
    /**
113
     * Band/artist logotype.
114
     */
115
    const BAND_OR_ARTIST_LOGOTYPE = 18;
116
117
    /**
118
     * Publisher/Studio logotype.
119
     */
120
    const PUBLISHER_OR_STUDIO_LOGOTYPE = 19;
121
122
    /**
123
     * Valid values.
124
     *
125
     * @var int[]
126
     */
127
    protected static $values = [
128
        self::OTHER,
129
        self::FILE_ICON_PNG,
130
        self::FILE_ICON_OTHER,
131
        self::COVER_FRONT,
132
        self::COVER_BACK,
133
        self::LEAFLET_PAGE,
134
        self::MEDIA,
135
        self::LEAD_ARTIST_OR_LEAD_PERFORMER_OR_SOLOIST,
136
        self::ARTIST_OR_PERFORMER,
137
        self::CONDUCTOR,
138
        self::BAND_OR_ORCHESTRA,
139
        self::COMPOSER,
140
        self::LYRICIST_OR_TEXT_WRITER,
141
        self::RECORDING_LOCATION,
142
        self::DURING_RECORDING,
143
        self::DURING_PERFORMANCE,
144
        self::MOVIE_OR_VIDEO_SCREEN_CAPTURE,
145
        self::A_BRIGHT_COLOURED_FISH,
146
        self::ILLUSTRATION,
147
        self::BAND_OR_ARTIST_LOGOTYPE,
148
        self::PUBLISHER_OR_STUDIO_LOGOTYPE
149
    ];
150
151
    /**
152
     * Return valid values.
153
     *
154
     * @return int[]
155
     */
156
    public static function values()
157
    {
158
        return static::$values;
159
    }
160
}
161