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

Tag   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSequence() 0 4 1
A getName() 0 4 1
A getTransformers() 0 4 1
1
<?php
2
3
namespace Chrisyue\PhpM3u8\M3u8;
4
5
/**
6
 * @Annotation
7
 * @Target("PROPERTY")
8
 */
9
class Tag extends AbstractTag
10
{
11
    private $options;
12
13
    public function __construct(array $options)
14
    {
15
        $this->options = $options;
16
    }
17
18
    public function getSequence()
19
    {
20
        return $this->options['sequence'];
21
    }
22
23
    protected function getName()
24
    {
25
        return $this->options['name'];
26
    }
27
28
    protected function getTransformers()
29
    {
30
        return $this->options['transformers'];
31
    }
32
}
33