| 1 | <?php |
||
| 4 | abstract class BasicTypeResponse extends BaseResponse implements ResponseInterface |
||
| 5 | { |
||
| 6 | const TYPE_STRING = 0; |
||
| 7 | const TYPE_INT = 1; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Basic data type for this response |
||
| 11 | * |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $type; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Set response body |
||
| 18 | * |
||
| 19 | * @param mixed $body Response body |
||
| 20 | * @return void |
||
| 21 | * @throws InvalidResponseException |
||
| 22 | */ |
||
| 23 | public function setBody($body) |
||
| 39 | } |