1 | <?php |
||
8 | class RecordedOn |
||
9 | { |
||
10 | /** |
||
11 | * @var DateTime |
||
12 | */ |
||
13 | private $recorded; |
||
14 | |||
15 | /** |
||
16 | * ModifiedDateTime constructor. |
||
17 | * @param DateTime $recorded |
||
18 | */ |
||
19 | private function __construct(DateTime $recorded) |
||
23 | |||
24 | /** |
||
25 | * @param DomainMessage $domainMessage |
||
26 | * @return RecordedOn |
||
27 | */ |
||
28 | public static function fromDomainMessage(DomainMessage $domainMessage) |
||
32 | |||
33 | /** |
||
34 | * @param DateTime $dateTime |
||
35 | * @return RecordedOn |
||
36 | */ |
||
37 | public static function fromBroadWayDateTime(DateTime $dateTime) |
||
41 | |||
42 | /** |
||
43 | * @return DateTime |
||
44 | */ |
||
45 | public function getRecordedOn() |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function toString() |
||
60 | } |
||
61 |