CoverChecker::create()   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 1
crap 1
1
<?php
2
3
namespace Mhor\MediaInfo\Checker;
4
5
use Mhor\MediaInfo\Attribute\Cover;
6
7
class CoverChecker extends AbstractAttributeChecker
8
{
9
    /**
10
     * @param string $value
11
     *
12
     * @return Cover
13
     */
14 4
    public function create($value): \Mhor\MediaInfo\Attribute\Cover
15
    {
16 4
        return new Cover($value);
17
    }
18
19
    /**
20
     * @return array
21
     */
22 12
    public function getMembersFields(): array
23
    {
24 12
        return ['cover_data'];
25
    }
26
}
27