Passed
Push — v2 ( 5c6a17...17236d )
by Brent
05:18
created

Parse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 4
dl 0
loc 11
ccs 6
cts 6
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Stitcher\Command;
4
5
use Stitcher\File;
6
use Symfony\Component\Yaml\Yaml;
7
8
class Parse extends AbstractParse
9
{
10 5
    public function execute(): void
11
    {
12 5
        $parsedConfiguration = Yaml::parse(File::read($this->configurationFile));
13
14 5
        $pages = $this->parsePageConfiguration($parsedConfiguration);
15
16 5
        $this->renderPages($pages);
17 5
    }
18
}
19