Mode::getFullName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Mhor\MediaInfo\Attribute;
4
5
use Mhor\MediaInfo\DumpTrait;
6
7
class Mode implements AttributeInterface
8
{
9
    use DumpTrait;
10
11
    /**
12
     * @var string
13
     */
14
    private $shortName;
15
16
    /**
17
     * @var string
18
     */
19
    private $fullName;
20
21
    /**
22
     * @param string $shortName
23
     * @param string $fullName
24
     */
25 5
    public function __construct(string $shortName, string $fullName)
26
    {
27 5
        $this->shortName = $shortName;
28 5
        $this->fullName = $fullName;
29 5
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function getFullName(): string
35
    {
36 1
        return $this->fullName;
37
    }
38
39
    /**
40
     * @return string
41
     */
42 1
    public function getShortName(): string
43
    {
44 1
        return $this->shortName;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function __toString(): string
51
    {
52 1
        return $this->shortName;
53
    }
54
}
55