| Total Complexity | 4 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | class DummyIncrementingHappened implements SerializablePayload  | 
            ||
| 13 | { | 
            ||
| 14 | /**  | 
            ||
| 15 | * @var int  | 
            ||
| 16 | */  | 
            ||
| 17 | private $number = 0;  | 
            ||
| 18 | |||
| 19 | public function __construct(int $number)  | 
            ||
| 20 |     { | 
            ||
| 21 | $this->number = $number;  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | public function toPayload(): array  | 
            ||
| 25 |     { | 
            ||
| 26 | return ['number' => $this->number];  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | public static function fromPayload(array $payload): SerializablePayload  | 
            ||
| 30 |     { | 
            ||
| 31 | return new DummyIncrementingHappened($payload['number']);  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | public function number(): int  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |