Ejemplo n.º 1
0
 /**
  * Serialises $this to a JSON string
  * @return string
  */
 public function serialise()
 {
     return Json::serialise($this);
 }
Ejemplo n.º 2
0
 /**
  * Formats the current object to a JSON-formatted string
  * IMPORTANT! This will serialise all public properties
  * @return string
  */
 public function toJsonString()
 {
     return Json::serialise($this);
 }