public function __get_state() { $vars = get_object_vars($this); unset($vars['attributeTypes']); $vars = array_filter($vars); return $vars; }