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

PictureFrame   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 118
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 8
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 118
ccs 0
cts 20
cp 0
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getMimeType() 0 4 1
A setMimeType() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
A getDescription() 0 4 1
A setDescription() 0 6 1
A getData() 0 4 1
A setData() 0 6 1
1
<?php
2
/**
3
 * This file is part of the Metadata package.
4
 *
5
 * @author Daniel Schröder <[email protected]>
6
 */
7
8
namespace GravityMedia\Metadata\ID3v2\Frame;
9
10
use GravityMedia\Metadata\ID3v2\Frame;
11
12
/**
13
 * ID3v2 picture frame class.
14
 *
15
 * @package GravityMedia\Metadata
16
 */
17
class PictureFrame extends Frame
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $mimeType;
23
24
    /**
25
     * @var int
26
     */
27
    protected $type;
28
29
    /**
30
     * @var string
31
     */
32
    protected $description;
33
34
    /**
35
     * @var string
36
     */
37
    protected $data;
38
39
    /**
40
     * Get mime type.
41
     *
42
     * @return string
43
     */
44
    public function getMimeType()
45
    {
46
        return $this->mimeType;
47
    }
48
49
    /**
50
     * Set mime type.
51
     *
52
     * @param string $mimeType
53
     *
54
     * @return $this
55
     */
56
    public function setMimeType($mimeType)
57
    {
58
        $this->mimeType = $mimeType;
59
60
        return $this;
61
    }
62
63
    /**
64
     * Get type.
65
     *
66
     * @return int
67
     */
68
    public function getType()
69
    {
70
        return $this->type;
71
    }
72
73
    /**
74
     * Set type.
75
     *
76
     * @param int $type
77
     *
78
     * @return $this
79
     */
80
    public function setType($type)
81
    {
82
        $this->type = $type;
83
84
        return $this;
85
    }
86
87
    /**
88
     * Get description.
89
     *
90
     * @return string
91
     */
92
    public function getDescription()
93
    {
94
        return $this->description;
95
    }
96
97
    /**
98
     * Set description.
99
     *
100
     * @param string $description
101
     *
102
     * @return $this
103
     */
104
    public function setDescription($description)
105
    {
106
        $this->description = $description;
107
108
        return $this;
109
    }
110
111
    /**
112
     * Get data.
113
     *
114
     * @return string
115
     */
116
    public function getData()
117
    {
118
        return $this->data;
119
    }
120
121
    /**
122
     * Set data.
123
     *
124
     * @param string $data
125
     *
126
     * @return $this
127
     */
128
    public function setData($data)
129
    {
130
        $this->data = $data;
131
132
        return $this;
133
    }
134
}
135