mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Get ResponseReader options values.
This commit is contained in:
@@ -427,6 +427,12 @@ class ResponseReader {
|
||||
|
||||
public function getOption($option) {
|
||||
switch ($option) {
|
||||
case 'iterable_multibulk_replies':
|
||||
case 'iterableMultiBulkReplies':
|
||||
return $this->_prefixHandlers['*'] instanceof ResponseMultiBulkStreamHandler;
|
||||
case 'errorThrowException':
|
||||
case 'error_throw_exception':
|
||||
return $this->_prefixHandlers['*'] instanceof ResponseErrorHandler;
|
||||
default:
|
||||
throw new \InvalidArgumentException("Unknown option: $option");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user