Passed
Push — master ( a41b98...7ac014 )
by Caen
03:31 queued 13s
created

HtmlPage::contents()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Hyde\Framework\Models\Pages;
4
5
use Hyde\Framework\Concerns\HydePage;
6
7
class HtmlPage extends HydePage
8
{
9
    public static string $sourceDirectory = '_pages';
10
    public static string $outputDirectory = '';
11
    public static string $fileExtension = '.html';
12
13
    public function contents(): string
14
    {
15
        return file_get_contents($this->getSourcePath());
16
    }
17
18
    public function compile(): string
19
    {
20
        return $this->contents();
21
    }
22
}
23