src/Configuration.php
public function createReadContext($stream)
    {
        $reader   = $this->getStreamReader();
        $registry = $this->extensionRegistry;
        $context  = new ReadContext($stream, $reader, $registry);

        return $context;
    }
public function createReadContext($stream)
    {
        $reader   = $this->getStreamReader();
        $registry = $this->extensionRegistry;
        $context  = new ReadContext($stream, $reader, $registry);

        return $context;
    }
public function createReadContext ( $ stream ) { $ reader = $ this -> getStreamReader ( ) ; $ registry = $ this -> extensionRegistry ; $ context = new ReadContext ( $ stream , $ reader , $ registry ) ; return $ context ; }
Create a read context.

@param \Protobuf\Stream|resource|string $stream

@return \Protobuf\ReadContext
Create a read context .