1<?php
2
3
4namespace ComboStrap;
5
6
7class EndDate extends MetadataDateTime
8{
9
10
11    public const PROPERTY_NAME = "date_end";
12
13    public static function createFromPage(Page $page)
14    {
15        return (new EndDate())
16            ->setResource($page);
17    }
18
19    public function getTab(): string
20    {
21        return MetaManagerForm::TAB_TYPE_VALUE;
22    }
23
24    public function getDescription(): string
25    {
26        return "The end date of an event";
27    }
28
29    public function getLabel(): string
30    {
31        return "End Date";
32    }
33
34    public static function getName(): string
35    {
36        return self::PROPERTY_NAME;
37    }
38
39    public function getPersistenceType(): string
40    {
41        return Metadata::PERSISTENT_METADATA;
42    }
43
44    public function getMutable(): bool
45    {
46        return true;
47    }
48
49    public function getDefaultValue()
50    {
51        return null;
52    }
53
54    public function getCanonical(): string
55    {
56        return PageType::EVENT_TYPE;
57    }
58
59
60}
61