public function encode($data, $humanReadable = false) { $stream = new OutputStream(); $serializer = new Serializer($stream); $serializer->writeTypeMarker($data); return $stream->getStream(); }
/** * Return the output stream content * * @return string The contents of the output stream */ public function getResponse() { return $this->_outputStream->getStream(); }