public function setStreamingContext($context, callable $callback)
    {
        if (0 === $context &= ~7) { // 0b00000111
            throw new InvalidArgumentException("Context must be a valid context value");
        }

        $this->setFlags($context);
        $this->streamCallback = $callback;
    }
public function setStreamingContext($context, callable $callback)
    {
        if (0 === $context &= ~7) { // 0b00000111
            throw new InvalidArgumentException("Context must be a valid context value");
        }

        $this->setFlags($context);
        $this->streamCallback = $callback;
    }
public function setStreamingContext ( $ context , callable $ callback ) { if ( 0 === $ context &= ~ 7 ) { // 0b00000111 throw new InvalidArgumentException ( "Context must be a valid context value" ) ; } $ this -> setFlags ( $ context ) ; $ this -> streamCallback = $ callback ; }
Switches the internal state to one of the supported Redis contexts and
associates a callback to process streaming reply items.

@param int      $context  Context flag.
@param callable $callback Callable object.
Switches the internal state to one of the supported Redis contexts and associates a callback to process streaming reply items .