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