1 | <?php |
||
15 | class Timestamp implements SerializableInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var DateTimeInterface |
||
20 | */ |
||
21 | protected $startDate; |
||
22 | |||
23 | /** |
||
24 | * @var DateTimeInterface |
||
25 | */ |
||
26 | protected $endDate; |
||
27 | |||
28 | /** |
||
29 | * Constructor |
||
30 | * |
||
31 | * @param DateTimeInterface $startDate |
||
32 | * @param DateTimeInterface $endDate |
||
33 | * |
||
34 | * @throws InvalidArgumentException |
||
35 | */ |
||
36 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * @return DateTimeInterface |
||
50 | */ |
||
51 | public function getStartDate() |
||
55 | |||
56 | /** |
||
57 | * @return DateTimeInterface |
||
58 | */ |
||
59 | public function getEndDate() |
||
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | public static function deserialize(array $data) |
||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function serialize() |
||
85 | |||
86 | /** |
||
87 | * @param DateRange $dateRange |
||
88 | * @return self |
||
89 | */ |
||
90 | public static function fromUdb3ModelDateRange(DateRange $dateRange) |
||
97 | } |
||
98 |