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 | public function __construct(DateTime $recorded) |
||
23 | |||
24 | /** |
||
25 | * @param DomainMessage $domainMessage |
||
26 | * @return RecordedOn |
||
27 | */ |
||
28 | public static function fromDomainMessage(DomainMessage $domainMessage) |
||
32 | |||
33 | /** |
||
34 | * @return DateTime |
||
35 | */ |
||
36 | public function getRecordedOn() |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function toString() |
||
51 | } |
||
52 |