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

CommentFrame::getLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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