1 | <?php |
||
9 | final class CommandContinuationRequestResponse implements ResponseInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $line; |
||
15 | |||
16 | /** |
||
17 | * @param string $line |
||
18 | */ |
||
19 | 10 | public function __construct(string $line) |
|
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | 1 | public function __toString(): string |
|
31 | |||
32 | /** |
||
33 | * @param CompletionResult $expectedResult |
||
34 | * @return ResponseInterface |
||
35 | * @throws AssertionFailedException |
||
36 | */ |
||
37 | 1 | public function assertCompletion(CompletionResult $expectedResult): ResponseInterface |
|
38 | { |
||
39 | 1 | throw new AssertionFailedException(); |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return ResponseInterface |
||
44 | */ |
||
45 | 7 | public function assertContinuation(): ResponseInterface |
|
46 | { |
||
47 | 7 | return $this; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return ResponseInterface |
||
52 | * @throws AssertionFailedException |
||
53 | */ |
||
54 | 7 | public function assertTagged(): ResponseInterface |
|
55 | { |
||
56 | 7 | throw new AssertionFailedException('A command continuous request is never tagged'); |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @param string $className |
||
61 | * @return ResponseInterface |
||
62 | * @throws AssertionFailedException |
||
63 | */ |
||
64 | public function assertParsed(string $className): ResponseInterface |
||
65 | { |
||
66 | throw new AssertionFailedException('A command continuous response is never parsed'); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | public function getBody(): string |
|
76 | } |
||
77 |