Cover   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 32
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1
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 5
    public function __construct(string $cover)
19
    {
20 5
        $this->binaryCover = $cover;
21 5
    }
22
23
    /**
24
     * @return string
25
     */
26 1
    public function getBinaryCover(): string
27
    {
28 1
        return $this->binaryCover;
29
    }
30
31
    /**
32
     * @return string
33
     */
34 1
    public function __toString(): string
35
    {
36 1
        return $this->binaryCover;
37
    }
38
}
39