Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | abstract class AbstractSequence implements SequenceInterface |
||
18 | { |
||
19 | /** @var string */ |
||
20 | private $header; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $footer; |
||
24 | |||
25 | /** |
||
26 | * @param string $header |
||
27 | * @param string $footer |
||
28 | */ |
||
29 | public function __construct(string $header, string $footer) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function writeHeader(OutputInterface $output): void |
||
39 | { |
||
40 | if (!empty($this->header)) { |
||
41 | $output->writeln($this->header); |
||
42 | } |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function whiteFooter(OutputInterface $output): void |
||
52 | } |
||
53 | } |
||
55 |