1 | <?php |
||
17 | class TelnetResponse implements TelnetResponseInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $isError; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $responseText; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $promptMatches; |
||
33 | |||
34 | /** |
||
35 | * @param bool $isError |
||
36 | * @param string $responseText |
||
37 | * @param array $promptMatches |
||
38 | */ |
||
39 | 15 | public function __construct($isError, $responseText, array $promptMatches) |
|
45 | |||
46 | /** |
||
47 | * @return bool |
||
48 | */ |
||
49 | 15 | public function isError() |
|
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 15 | public function getResponseText() |
|
61 | |||
62 | /** |
||
63 | * @return array |
||
64 | */ |
||
65 | 15 | public function getPromptMatches() |
|
69 | } |
||
70 |