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

ParentChildDumper::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 4
1
<?php
2
3
namespace Chrisyue\PhpM3u8\Dumper;
4
5
use Chrisyue\PhpM3u8\DataAccessor\FactoryInterface;
6
7
class ParentChildDumper extends ParentDumper implements ChildDumperInterface
8
{
9
    private $repeatable;
10
11
    private $sequence;
12
13
    public function __construct(
14
        FactoryInterface $dataAccessorFactory,
15
        array $children,
16
        $sequence,
17
        $repeatable = false
18
    ) {
19
        parent::__construct($dataAccessorFactory, $children);
20
21
        $this->sequence = $sequence;
22
        $this->repeatable = $repeatable;
23
    }
24
25
    public function isRepeatable()
26
    {
27
        return $this->repeatable;
28
    }
29
30
    public function getSequence()
31
    {
32
        return $this->sequence;
33
    }
34
}
35