public function write($data)
    {
        return $this->stream->write(
            $this->splitter->writePacket(
                $this->protocol->serializeVariantPacket($data)
            )
        );
    }
public function write($data)
    {
        return $this->stream->write(
            $this->splitter->writePacket(
                $this->protocol->serializeVariantPacket($data)
            )
        );
    }
public function write ( $ data ) { return $ this -> stream -> write ( $ this -> splitter -> writePacket ( $ this -> protocol -> serializeVariantPacket ( $ data ) ) ) ; }
writes the given data array to the underlying connection

This is a low level method that should only be used if you know what
you're doing. Also check the other write*() methods instead.

@param array $data
@return boolean returns boolean false if buffer is full and writing should be throttled
writes the given data array to the underlying connection