Passed
Push — master ( 9b4e67...25f483 )
by Caen
02:57 queued 12s
created

PageSchema::constructPageSchema()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Hyde\Framework\Concerns\FrontMatter\Schemas;
4
5
use Hyde\Framework\Actions\Constructors\FindsTitleForPage;
6
7
trait PageSchema
8
{
9
    /** @example "Home", "About", "Blog Feed" */
10
    public string $title;
11
12
    protected function constructPageSchema(): void
13
    {
14
        $this->title = FindsTitleForPage::run($this);
15
    }
16
}
17