Completed
Pull Request — develop (#27)
by Chris
02:25
created

Byterange::createParser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Chrisyue\PhpM3u8\PdFactory\Annotation;
4
5
use Chrisyue\PhpM3u8\PdFactory\PdFactoryInterface;
6
use Chrisyue\PhpM3u8\Transformer\ByterangeTransformer;
7
use Chrisyue\PhpM3u8\Line\Line;
8
use Chrisyue\PhpM3u8\Parser\TagParser;
9
10
/**
11
 * @Annotation
12
 */
13
class Byterange implements PdFactoryInterface
14
{
15
    public function createParser()
16
    {
17
        return new TagParser(
18
            new Line('#EXT-X-BYTERANGE'),
19
            new ByterangeTransformer()
20
        );
21
    }
22
23
    public function createDumper()
24
    {
25
        
26
    }
27
}
28