public function fields($val)
    {
        if (empty($this->fields)) {
            $this->generateFields($val);
        } else {
            $this->updatedFields($val);
        }

        return $this->fields;
    }