src/Configuration.php
public function createWriteContext()
    {
        $stream      = Stream::create();
        $writer      = $this->getStreamWriter();
        $sizeContext = $this->createComputeSizeContext();
        $context     = new WriteContext($stream, $writer, $sizeContext);

        return $context;
    }
public function createWriteContext()
    {
        $stream      = Stream::create();
        $writer      = $this->getStreamWriter();
        $sizeContext = $this->createComputeSizeContext();
        $context     = new WriteContext($stream, $writer, $sizeContext);

        return $context;
    }
public function createWriteContext ( ) { $ stream = Stream :: create ( ) ; $ writer = $ this -> getStreamWriter ( ) ; $ sizeContext = $ this -> createComputeSizeContext ( ) ; $ context = new WriteContext ( $ stream , $ writer , $ sizeContext ) ; return $ context ; }
Create a write context.

@return \Protobuf\WriteContext
Create a write context .