Completed
Pull Request — develop (#27)
by Chris
15:41 queued 43s
created

AbstractM3u8   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 30
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setStream() 0 6 1
A getStream() 0 4 1
A setResult() 0 6 1
A getResult() 0 4 1
1
<?php
2
3
namespace Chrisyue\PhpM3u8\M3u8;
4
5
use Chrisyue\PhpM3u8\Stream\StreamInterface;
6
7
abstract class AbstractM3u8 implements M3u8Interface
8
{
9
    private $stream;
10
11
    private $result;
12
13
    public function setStream(StreamInterface $stream)
14
    {
15
        $this->stream = $stream;
16
17
        return $this;
18
    }
19
20
    public function getStream()
21
    {
22
        return $this->stream;
23
    }
24
25
    public function setResult($result)
26
    {
27
        $this->result = $result;
28
29
        return $this;
30
    }
31
32
    public function getResult()
33
    {
34
        return $this->result;
35
    }
36
}
37