Completed
Pull Request — develop (#27)
by Chris
12:14
created

MediaSegment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A shouldParseNextLine() 0 8 2
1
<?php
2
3
namespace Chrisyue\PhpM3u8\M3u8\Core;
4
5
use Chrisyue\PhpM3u8\M3u8\NameAwareTrait;
6
use Chrisyue\PhpM3u8\M3u8\SequenceAwareTrait;
7
8
/**
9
 * @Annotation
10
 * @Target("PROPERTY")
11
 */
12
class MediaSegment extends AbstractAnnotationReadable implements ChildCoreInterface
13
{
14
    use SequenceAwareTrait;
15
16
    protected function shouldParseNextLine($result, $parsedSequence)
17
    {
18
        if ($parsedSequence < 0) {
19
            return false;
20
        }
21
22
        return null === $result->uri;
23
    }
24
}
25