has_errors()){ throw new Exception($this->get_formatted_errors("text")); } } function get_activities(){ return $this->data; } }