public function clear(){
        foreach(get_object_vars($this) as $property => $value){
            if(is_array($value)){
                $tempValue = [];
            } else {
                $tempValue = null;
            }

            $this->{$property} = $tempValue;
        }
    }