Total Complexity | 6 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 0 |
1 | <?php |
||
14 | abstract class Page implements PageInterface |
||
15 | { |
||
16 | /** |
||
17 | * Constructor stub |
||
18 | */ |
||
19 | 7 | public function __construct() |
|
21 | 7 | } |
|
22 | |||
23 | /** |
||
24 | * @{inheritDoc} |
||
25 | */ |
||
26 | 1 | public function getTemplateName() |
|
27 | { |
||
28 | 1 | return Str::infix(Str::rstrip(Str::classname(get_class($this)), 'Page'), '-'); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * May be implemented to support translated pages. |
||
33 | * |
||
34 | * @return null |
||
35 | */ |
||
36 | public function getLanguage() |
||
37 | { |
||
38 | return null; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Returns the content item matrix for the item. |
||
43 | * |
||
44 | * @return ContentItemMatrix |
||
45 | */ |
||
46 | public function getContentItemMatrix() |
||
47 | { |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * A page must be able to display it's own type as a human readable string. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getDisplayType() |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * By default, pages are never public (sane default). If you need your own logic, |
||
62 | * implement it here, the PageVoter will respect this. |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function isPublic() |
||
69 | } |
||
70 | } |
||
71 |