| 1 | <?php |
||
| 4 | class Read |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | protected $watermark; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $sequence; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Read constructor. |
||
| 19 | * |
||
| 20 | * @param int $watermark |
||
| 21 | * @param int $sequence |
||
| 22 | */ |
||
| 23 | public function __construct(int $watermark, int $sequence) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function getWatermark(): int |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | public function getSequence(): int |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param array $payload |
||
| 47 | * @return static |
||
| 48 | */ |
||
| 49 | public static function create(array $payload) |
||
| 53 | } |
||
| 54 |