Update the $name $value of the $bundle
@no-permission
@param AbstractBundle $bundle
@param $name
@param $value
@return
2785
public function updateByBundle(AbstractBundle $bundle, $name, $value)
    {
        $query = $this->getNewQuery();
        $query = $bundle->makeQueryFiltered($query);
        return $query->where('name', $name)->update('value', $value);
    }
1218673
public function push($name, $value)
    {
        $previousValue = $this->get($name, []);

        $previousValue[] = $value;

        return $this->create($name, $previousValue);
    }
1024473
public function withAddedHeader($name, $value): self
    {
        $this->assertHeaderName($name);

        $clone = clone $this;
        $clone->headers->add($name, $value);

        return $clone;
    }
1059876
public function addDefaultResponseHeader(string $name, string $value) : AbstractStrategy
    {
        $this->defaultResponseHeaders[strtolower($name)] = $value;

        return $this;
    }
1305911
public function updateAll(UpdateSettingRequest $request, System $bundle)
    {
        if ($request->isReset() === false) {
            $bundle = $this->repository->getBundle($bundle);
            $data = $request->json();
            foreach ($data as $name => $value) {
                if ($bundle->hasName($name) && $value != $bundle[$name]) {
                    $bundle[$name] = $value;
                }
            }
        }
        $bundle->persist();

        return $this->sendResponse($bundle, 'Setting updated successfully.');
    }
1007949
public function set($name, $value)
    {
        if (property_exists($this, $name)) {
            $this->$name = $value;

            return true;
        }

        return null;
    }
520794
protected function set($name, $value)
    {
        if ($this->modified === null && $this->uid !== null) {
            $this->load();
        }

        $value = $this->validate($name, $value);

        if ($this->properties[$name]['value'] !== $value) {
            $this->properties[$name]['value'] = $value;
            $this->modified = true;
        }

        return $this;
    }
175703
public function set(string $name, $value)
    {
        if (empty($name)) {
            return false;
        }

        if (isset($this->{$name})) {
            $this->{$name} = $value;
        } else {
            $this->properties[$name] = $value;
        }

        return true;
    }
358332
public function updateState($name, $value = null)
    {
        $state = $this->retrieveState();
        if (is_array($name)) {
            $state = array_merge($state, $name);
        } elseif (is_string($name)) {
            $state[$name] = $value;
        }
        $key = $this->generateKey(self::STATE_KEY);
        self::storage()->set($key, $state);
    }
1339019
private function update_value( $component, $value )
    {
        $component->set_value( $value );
        $this->final_instance[$component->get_name()] = $value;
    }
1179470
public function set($name, $value, $first = false)
    {
        if ($first && isset($this->item[$name])) {
            array_unshift($this->item[$name], $value);
        } else {
            $this->item[$name][] = $value;
        }
    }
980491
public function set($name, $value = null)
    {
        if (is_array($name))
        {
            // 如果传入数组就合并当前数据
            $this->data = ArrayUtil::recursiveMerge($this->data, $name);
        }
        else
        {
            // 设置数据
            $this->data[$name] = $value;
        }
        return true;
    }
244114
public function update( string $name, $value ) {
		if ( $this->term->$name ) {
			return wp_update_term( $this->term_id, $this->taxonomy, [
				$name => $value
			] );
		} elseif ( $this->$name ) {
			return update_field( $name, $value, $this->term );
		}
		
		return FALSE;
	}
925615
public function addBundle(Bundle $bundle)
    {
        foreach ($bundle as $resource) {
            if (is_string($resource)) {
                $this->addFile($resource);
            } else {
                $this->buildFromIterator($resource);
            }
        }
    }
1180771
public function append($name, $value)
    {
        $this->list[] = [TypeHinter::to('USVString', $name, 0), TypeHinter::to('USVString', $value, 1)];
        $this->update();
    }
891593
public function update( string $name, $value ) {
		if ( $this->post->$name ) {
			return wp_update_post( [
				'ID'  => $this->ID,
				$name => $value
			] );
		} elseif ( $this->$name ) {
			return update_field( $name, $value, $this->ID );
		}
		
		return FALSE;
	}
165660
public static void putToken(Bundle bundle, String value) {
        Validate.notNull(bundle, "bundle");
        Validate.notNull(value, "value");
        bundle.putString(TOKEN_KEY, value);
    }