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

PageSchema   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 8
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A constructPageSchema() 0 3 1
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