Exemplo n.º 1
0
 /**
  * Turn an object graph into a string
  *
  * @param mixed $value
  * @return string
  */
 public function serialize($value)
 {
     $this->navigator->accept($this->navigator, $this->visitor, $value);
     $result = $this->visitor->getResult();
     return $this->encoder->encode($result);
 }