1 | <?php |
||
12 | class TextApiResponse implements ResponseInterface |
||
13 | { |
||
14 | use SmartObject; |
||
15 | |||
16 | /** @var int */ |
||
17 | private $code; |
||
18 | |||
19 | /** @var mixed */ |
||
20 | private $data; |
||
21 | |||
22 | /** |
||
23 | * @param int $code |
||
24 | * @param mixed $data |
||
25 | */ |
||
26 | 6 | public function __construct(int $code, $data) |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 3 | public function getCode(): int |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 3 | public function send(IRequest $httpRequest, IResponse $httpResponse): void |
|
51 | } |
||
52 |