| 1 | <?php |
||
| 9 | final class CommandContinuationRequestResponse implements ResponseInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $line; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * CommandContinuationRequestResponse constructor. |
||
| 18 | * @param string $line |
||
| 19 | */ |
||
| 20 | 2 | public function __construct(string $line) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function __toString(): string |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $data |
||
| 35 | * @return ResponseInterface |
||
| 36 | */ |
||
| 37 | public function withBody(string $data): ResponseInterface |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param CompletionResult $expectedResult |
||
| 46 | * @return ResponseInterface |
||
| 47 | * @throws AssertionFailedException |
||
| 48 | */ |
||
| 49 | public function assertCompletion(CompletionResult $expectedResult): ResponseInterface |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return ResponseInterface |
||
| 56 | */ |
||
| 57 | 2 | public function assertContinuation(): ResponseInterface |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return ResponseInterface |
||
| 64 | * @throws AssertionFailedException |
||
| 65 | */ |
||
| 66 | 2 | public function assertTagged(): ResponseInterface |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getBody(): string |
||
| 78 | } |