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

Inf::createDumper()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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