| 1 | <?php  | 
            ||
| 8 | class EventStub implements Event  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * @var PointInTime  | 
            ||
| 12 | */  | 
            ||
| 13 | private $pointInTime;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @var string  | 
            ||
| 17 | */  | 
            ||
| 18 | private $value;  | 
            ||
| 19 | |||
| 20 | 2 | public function __construct(PointInTime $pointInTime, string $value)  | 
            |
| 25 | |||
| 26 | 1 | public function timeOfRecording(): PointInTime  | 
            |
| 30 | |||
| 31 | 2 | public function toPayload(): array  | 
            |
| 35 | |||
| 36 | 2 | public static function fromPayload(array $payload, PointInTime $timeOfRecording): Event  | 
            |
| 40 | |||
| 41 | 1 | public static function create(string $value = null)  | 
            |
| 45 | }  |