| 1 | <?php |
||
| 5 | class SampleEntity implements \JsonSerializable |
||
| 6 | { |
||
| 7 | /** @var int|null */ |
||
| 8 | private $id; |
||
| 9 | /** @var string */ |
||
| 10 | private $payload; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $secret; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * SampleEntity constructor. |
||
| 17 | * |
||
| 18 | * @param string $payload |
||
| 19 | */ |
||
| 20 | 4 | public function __construct($payload) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return int|null |
||
| 28 | */ |
||
| 29 | public function getId() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getPayload() |
||
| 41 | |||
| 42 | /** {@inheritdoc} */ |
||
| 43 | public function jsonSerialize() |
||
| 50 | } |
||
| 51 |