| 1 | <?php |
||
| 15 | class InProgressWriteOperation extends WriteOperation |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Next operation |
||
| 19 | * |
||
| 20 | * @var OperationInterface |
||
| 21 | */ |
||
| 22 | private $nextOperation; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * WriteOperation constructor. |
||
| 26 | * |
||
| 27 | * @param OperationInterface $next Scheduled next write operation |
||
| 28 | * @param string $data Data to send |
||
| 29 | */ |
||
| 30 | 3 | public function __construct(OperationInterface $next = null, $data = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Return NextOperation |
||
| 38 | * |
||
| 39 | * @return OperationInterface |
||
| 40 | */ |
||
| 41 | 1 | public function getNextOperation() |
|
| 45 | } |
||
| 46 |