Completed
Push — id3-metadata-objects ( 168cf3...e37014 )
by Daniel
08:47
created

Frame::setData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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;
9
10
/**
11
 * ID3v2 frame class.
12
 *
13
 * @package GravityMedia\Metadata
14
 */
15
class Frame
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $name;
21
22
    /**
23
     * @var string
24
     */
25
    protected $content;
26
27
    /**
28
     * Get name.
29
     *
30
     * @return string
31
     */
32
    public function getName()
33
    {
34
        return $this->name;
35
    }
36
37
    /**
38
     * Set name.
39
     *
40
     * @param string $name
41
     *
42
     * @return $this
43
     */
44
    public function setName($name)
45
    {
46
        $this->name = $name;
47
48
        return $this;
49
    }
50
51
    /**
52
     * Get content.
53
     *
54
     * @return string
55
     */
56
    public function getContent()
57
    {
58
        return $this->content;
59
    }
60
61
    /**
62
     * Set content.
63
     *
64
     * @param string $content
65
     *
66
     * @return $this
67
     */
68
    public function setContent($content)
69
    {
70
        $this->content = $content;
71
72
        return $this;
73
    }
74
}
75