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

CommentFrame   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLanguage() 0 4 1
A setLanguage() 0 6 1
A getDescription() 0 4 1
A setDescription() 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 comment frame class.
14
 *
15
 * @package GravityMedia\Metadata
16
 */
17
class CommentFrame extends TextFrame
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $language;
23
24
    /**
25
     * @var string
26
     */
27
    protected $description;
28
29
    /**
30
     * Get language.
31
     *
32
     * @return string
33
     */
34
    public function getLanguage()
35
    {
36
        return $this->language;
37
    }
38
39
    /**
40
     * Set language.
41
     *
42
     * @param string $language
43
     *
44
     * @return $this
45
     */
46
    public function setLanguage($language)
47
    {
48
        $this->language = $language;
49
50
        return $this;
51
    }
52
53
    /**
54
     * Get description.
55
     *
56
     * @return string
57
     */
58
    public function getDescription()
59
    {
60
        return $this->description;
61
    }
62
63
    /**
64
     * Set description.
65
     *
66
     * @param string $description
67
     *
68
     * @return $this
69
     */
70
    public function setDescription($description)
71
    {
72
        $this->description = $description;
73
74
        return $this;
75
    }
76
}
77