| Total Complexity | 1 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | abstract class AbstractPage |
||
| 28 | { |
||
| 29 | use IdTrait; |
||
| 30 | use TimestampedTrait; |
||
| 31 | |||
| 32 | public ?Route $route; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * This will be se so that when auto-generating a route for a newly created |
||
| 36 | * PageTemplate / PageData, we can prepend parent routes. |
||
| 37 | */ |
||
| 38 | public ?Route $parentRoute; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * If true, then the PageTemplate/PageData is nested within the parentRoute. |
||
| 42 | * So not only will any auto-generated route have the parent route prefixes, |
||
| 43 | * the front end should expect to load the PageTemplate/PageData nested within |
||
| 44 | * the parent page(s) up to the point where a parent is defined as not nested or |
||
| 45 | * does not have a parent route |
||
| 46 | * E.g. the parent route's page may just be a Hero and some Tab navigation. |
||
| 47 | */ |
||
| 48 | public bool $isNested = true; |
||
| 49 | |||
| 50 | public string $title = 'Unnamed Page'; |
||
| 51 | |||
| 52 | public ?string $metaDescription; |
||
| 53 | |||
| 54 | 3 | public function __construct() |
|
| 59 |