* Specify data which should be serialized to JSON */ public function jsonSerialize() { return $this->toArray(); } public function __call($name, $arguments) { return call_user_func_array([$this->getCollection(), $name], $arguments); } }
* Specify data which should be serialized to JSON
*/
public function jsonSerialize()
{
return $this->toArray();
}
public function __call($name, $arguments)
return call_user_func_array([$this->getCollection(), $name], $arguments);