Set meta value.

@param  string  $key
@param  mixed  $value

@return array
171127
public function set(string $key, $value)
    {
        return Arr::set($this->meta, $key, $value);
    }
1106538
public function putMetaData($key, $value = null): void
    {
        $meta = $this->getAttribute('meta');

        if (\is_array($key)) {
            foreach ($key as $name => $value) {
                $meta->put($name, $value);
            }
        } else {
            $meta->put($key, $value);
        }

        $this->setMetaAttribute($meta);
    }
162781
public function add_meta( $meta_key, $meta_value ) {
		return add_metadata( $this->meta_type, $this->get_id(), $meta_key, $meta_value, true );
	}
383269
public function set($key, $value)
    {
        $cont = clone $this;
        $cont->setParameter($key, $value);

        return $cont;
    }
250215
private function normalizeValues($key, $value)
    {
        $subItemsToNormalize = [
            MetaDataProvider::METADATA_DESCRIPTION,
            MetaDataProvider::METADATA_BLOCKS,
            MetaDataProvider::METADATA_SETTINGS
        ];
        if (\is_array($value) && in_array($key, $subItemsToNormalize, true)) {
            $normalizedValue = $this->lowerCaseArrayKeysRecursive($value);
        } else {
            $normalizedValue = $value;
        }

        return $normalizedValue;
    }
444083
public function set(string $key, $value = null)
    {
        return Arr::set($this->items, $key, \value($value));
    }
973837
public function set($key, $value)
    {
        $keys = explode('.', $key);

        $data = $this->getAll();

        $resource = &$data;
        foreach ($keys as $key) {
            if (!isset($resource[$key]) || !is_array($resource[$key])) {
                $resource[$key] = [];
            }
            $resource = &$resource[$key];
        }
        $resource = $value;

        $this->setAll($data);

        return $this;
    }
311149
public function set($key, $value): ArrayCollection
    {
        if ($key === null) {
            $this->items[] = $value;
        } else {
            $this->items[$key] = $value;
        }

        return $this;
    }
245226
public function appendMeta($key, $value)
    {
        $meta = $this->getMeta($key);

        if (!$meta) {
            $meta = [];

        } elseif (!is_array($meta)) {
            $meta = [$meta];
        }

        if (is_array($value)) {
            $meta = array_merge($meta, $value);
        } else {
            $meta[] = $value;
        }

        return $this->updateMeta($key, array_values(array_unique($meta)));
    }
1178751
public function set($key, $value) {
        setvalr(trim($key), $this->data, $value);
        return $value;
    }
1048240
public function setMeta($key, $value = null)
	{
		if(is_array($key))
		{
			$this->meta = array_merge($this->meta, $key);
			return $this;
		}

		$this->meta[$key] = $value;

		return $this;
	}
1246779
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->metas, $name, $value);
		return $this;
	}
429099
public function setMetaValue($value)
    {
        $this->_validateNotNull('MetaValue', $value);
        $this->_validateString('MetaValue', $value);

        if ($this->data['meta_value'] === $value) {
            return;
        }

        $this->data['meta_value'] = $value;

        $this->_setModified('meta_value');
    }
1099183
public static function set(string $key, $value)
    {
        return self::getInstance()->getConfig()->set($key, $value);
    }
1135007
public function configSet(string $key, string $value): array
    {
        return $this->handle->config('SET', $key, $value);
    }
426439
public function setMeta($key, $value = null)
    {
        $setMeta = 'setMeta'.ucfirst(gettype($key));

        return $this->$setMeta($key, $value);
    }
463654
public function set($key, $value)
    {
        $this->load();

        if ( ! $this->has($key)) {
            $this->dirt[$key] = [
                'type' => 'created',
                'value' => $value,
            ];
        }

        if ($this->has($key) && $this->get($key) != $value) {
            $this->dirt[$key] = [
                'type' => 'updated',
                'value' => $value
            ];
        }

        Arr::set($this->settings, $key, $value);

        return $value;
    }