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

Cover   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 6
Bugs 1 Features 1
Metric Value
wmc 3
c 6
b 1
f 1
lcom 0
cbo 1
dl 0
loc 32
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getBinaryCover() 0 4 1
A __toString() 0 4 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