PhpOrient\Protocols\Binary\Abstracts\Operation::_writeHeader PHP Method

_writeHeader() protected method

Write the request header.
protected _writeHeader ( )
    protected function _writeHeader()
    {
        $this->_writeByte($this->opCode);
        $this->_writeInt($this->_transport->getSessionId());
        $token = $this->_transport->getToken();
        /*
         *  we must recognize dbOpen and Connect messages
         */
        if (!$this instanceof DbOpen && !$this instanceof Connect && $this->_transport->isRequestToken()) {
            $this->_writeString($token);
        }
    }