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

TextFrame   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getText() 0 4 1
A setText() 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 text frame class.
14
 *
15
 * @package GravityMedia\Metadata
16
 */
17
class TextFrame extends Frame
18
{
19
    /**
20
     * @var string[]
21
     */
22
    protected $text;
23
24
    /**
25
     * Get text.
26
     *
27
     * @return string[]
28
     */
29
    public function getText()
30
    {
31
        return $this->text;
32
    }
33
34
    /**
35
     * Set text.
36
     *
37
     * @param string[] $text
38
     *
39
     * @return $this
40
     */
41
    public function setText(array $text)
42
    {
43
        $this->text = $text;
44
45
        return $this;
46
    }
47
}
48