Completed
Pull Request — develop (#27)
by Chris
01:52
created

Inf   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createParser() 0 7 1
A createDumper() 0 4 1
1
<?php
2
3
namespace Chrisyue\PhpM3u8\PdFactory\Annotation;
4
5
use Chrisyue\PhpM3u8\PdFactory\PdFactoryInterface;
6
use Chrisyue\PhpM3u8\Parser\TagParser;
7
use Chrisyue\PhpM3u8\Transformer\InfTransformer;
8
use Chrisyue\PhpM3u8\Line\Line;
9
10
/**
11
 * @Annotation
12
 */
13
class Inf implements PdFactoryInterface
14
{
15
    public function createParser()
16
    {
17
        return new TagParser(
18
            new Line('#EXTINF'),
19
            new InfTransformer()
20
        );
21
    }
22
23
    public function createDumper()
24
    {
25
        
26
    }
27
}
28