Update Current New Field set as it inside a list

@param string $listName Name of List

@return $this
174620
public function inList($listName)
    {
        //====================================================================//
        // Safety Checks ==> Verify List Name Not Empty
        if (empty($listName)) {
            return $this;
        }

        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field Identifier
            $this->new->id = $this->new->id.LISTSPLIT.$listName;
            //====================================================================//
            // Update New Field Type
            $this->new->type = $this->new->type.LISTSPLIT.SPL_T_LIST;
        }

        return $this;
    }
753903
public function setListId($list_id)
    {
        $this->list_id = (is_numeric($list_id)) ? abs(round($list_id)) : NULL;

        return $this;
    }
193214
public function setList($id, $listId)
    {
        return $this->put($this->getPath().'/'.rawurlencode($id).'/idList', array('value' => $listId));
    }
1137892
public function setName($name) {
		if (is_array($name) && empty($name)) {
			$this->name = new \stdClass;
		} else {
			$this->name = $name;
		}

		return $this;
	}
1221367
public function setFieldValue($name, $value)
    {
        foreach ($this->fields as $key => $fields) {
            if (isset($fields[$name])) {
                $this->fields[$key][$name]->setValue($value);
            }
        }
        return $this;
    }
205903
public function setCompanyName($companyName) {
		if (is_array($companyName) && empty($companyName)) {
			$this->companyName = new \stdClass;
		} else {
			$this->companyName = $companyName;
		}

		return $this;
	}
1298607
protected function updateConfigs(string $currName, string $newName)
    {
        $configFiles = $this->fileSystem->getFiles(Config::get('paths', 'config'), true);

        foreach ($configFiles as $file) {
            $currentContents = $this->fileSystem->read($file);
            $updatedContents = str_replace(
                "$currName\\",
                "$newName\\",
                $currentContents
            );
            $this->fileSystem->write($file, $updatedContents);
        }
    }
313133
public function prependSelect($fields = [])
    {
        if (!is_array($fields)) {
            $fields = [$fields];
        }

        $collection = collect($this->select);
        foreach ($fields as $key => $field) {
            $collection->prepend($field, is_string($key) ? $key : null);
        }

        $this->select = $collection->all();

        return $this;
    }
550897
public function update($set = array())
    {
        if (is_array($set)) {
            $params = array();
            foreach ($set as $field => $param) {
                $this->add('set', $field . ' = ?', true);
                $params[] = $param;
            }
            $this->params = array_merge($params, $this->params);
        } else {
            $this->add('set', $set, true);
        }
        $this->type = self::UPDATE;
        return $this->execute();
    }
417647
public function set(string $field, $value): Update
    {
        $this->what[$field] = $value;
        return $this;
    }
791015
public function setName( $name )
   {

      if ( $this->_name === $name ) { return $this; }

      $this->_name = $name;

      $this->notify( [ 'property' => 'name' ] );

      return $this;

   }
395752
public function rename(string $name) : self
    {
        $this->requiresCurrentField();
        $this->newObj['$rename'][$this->currentField] = $name;
        return $this;
    }
406056
public static function listName($listFieldName)
    {
        //====================================================================//
        // Decode
        $result = self::isListField($listFieldName);
        if (empty($result)) {
            return false;
        }
        //====================================================================//
        // Return List Name
        return   $result['listname'];
    }
51239
public function addOrderBy($fieldname)
    {
        $this->orderby_check = true;
        $this->orderby_fields = array_merge($this->orderby_fields, (array)$fieldname);
        
        return $this;
    }
240780
public function increment($fieldName, $value = 1)
    {
        parent::set($fieldName, (int) $this->get($fieldName) + $value);

        if ($this->getId()) {
            $this->operator->increment($fieldName, $value);
        }


        return $this;
    }
751631
public function set(array $fields = null): Update
    {
        if (!\is_array($fields)) {
            throw new InvalidArgumentException('$fields has to be an array or a string');
        }

        $this->namesClass->addAliases(\array_keys($fields));
        foreach ($fields as $name => $value) {
            $this->fields[] = \sprintf(
                '%s=%s',
                $name,
                $this->escapeClass->escape($value, $this->namesClass->getAliases())
            );
        }

        return $this;
    }
564907
public function name($fieldName)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->name = $fieldName;
            if (empty($this->new->desc)) {
                $this->description($fieldName);
            }
        }

        return $this;
    }