1<?php
2
3
4namespace ComboStrap;
5
6/**
7 * Class Reference
8 * @package ComboStrap
9 * Reference
10 *
11 * Because they may not exist and this data is derive, we store only the value
12 * and not the page id for instance
13 */
14class Reference extends MetadataWikiPath
15{
16
17
18
19    public static function createFromResource(Page $page)
20    {
21        return (new Reference())
22            ->setResource($page);
23    }
24
25    public function getDescription(): string
26    {
27        return "The path to the internal page";
28    }
29
30    public function getLabel(): string
31    {
32        return "Reference Path";
33    }
34
35    public static function getName(): string
36    {
37        return "reference";
38    }
39
40    public function getPersistenceType(): string
41    {
42        return Metadata::DERIVED_METADATA;
43    }
44
45    public function getMutable(): bool
46    {
47        return false;
48    }
49
50}
51