HtmlVariable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 10 2
1
<?php
2
3
namespace Stitcher\Variable;
4
5
use Stitcher\File;
6
7
class HtmlVariable extends AbstractVariable
8
{
9
    public function parse(): AbstractVariable
10
    {
11
        $this->parsed = File::read($this->unparsed);
12
13
        if ($this->parsed === null) {
14
            $this->parsed = $this->unparsed;
15
        }
16
17
        return $this;
18
    }
19
}
20