1 | <?php |
||
9 | final class UntaggedResponse implements ResponseInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $line; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $command; |
||
20 | |||
21 | /** |
||
22 | * @param string $line |
||
23 | */ |
||
24 | 20 | public function __construct(string $line) |
|
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | 1 | public function __toString(): string |
|
36 | |||
37 | /** |
||
38 | * @param CompletionResult $expectedResult |
||
39 | * @return ResponseInterface |
||
40 | * @throws AssertionFailedException |
||
41 | */ |
||
42 | 3 | public function assertCompletion(CompletionResult $expectedResult): ResponseInterface |
|
61 | |||
62 | /** |
||
63 | * @return ResponseInterface |
||
64 | * @throws AssertionFailedException |
||
65 | */ |
||
66 | 2 | public function assertContinuation(): ResponseInterface |
|
70 | |||
71 | /** |
||
72 | * @return ResponseInterface |
||
73 | * @throws AssertionFailedException |
||
74 | */ |
||
75 | 2 | public function assertTagged(): ResponseInterface |
|
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 10 | public function getBody(): string |
|
87 | } |
||
88 |