/** * Serialize the collection object as a * JSON object. */ public function __toString() { return Encoder::Serialize($this->data); }