/** * If overriding this, be sure to include "class" with the fully qualified class name * @return array */ public function toArray() { return SerializeHelper::serializeObject(get_called_class(), get_object_vars($this)); }