Completed
Pull Request — develop (#27)
by Chris
10:31
created

AbstractCore   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setStream() 0 6 1
A getStream() 0 4 1
1
<?php
2
3
namespace Chrisyue\PhpM3u8\M3u8\Core;
4
5
use Chrisyue\PhpM3u8\Stream\StreamInterface;
6
use Chrisyue\PhpM3u8\M3u8\SequenceAwareInterface;
7
8
abstract class AbstractCore implements CoreInterface
9
{
10
    private $stream;
11
12
    public function setStream(StreamInterface $stream)
13
    {
14
        $this->stream = $stream;
15
16
        return $this;
17
    }
18
19
    protected function getStream()
20
    {
21
        return $this->stream;
22
    }
23
}
24