Passed
Branch master (b4f9b9)
by Maxime
03:00
created

Cover::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Mhor\MediaInfo\Attribute;
4
5
use Mhor\MediaInfo\DumpTrait;
6
7
class Cover implements AttributeInterface
8
{
9
    use DumpTrait;
10
    /**
11
     * @var string
12
     */
13
    private $binaryCover;
14
15
    /**
16
     * @param string $cover
17
     */
18 4
    public function __construct($cover)
19
    {
20 4
        $this->binaryCover = $cover;
21 4
    }
22
23
    /**
24
     * @return string
25
     */
26 1
    public function getBinaryCover()
27
    {
28 1
        return $this->binaryCover;
29
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function __toString()
35
    {
36 1
        return $this->binaryCover;
37
    }
38
}
39