Set custom metadata to send to Bugsnag.

You can use this to add custom tabs of data to each error on your
Bugsnag dashboard.

@param array[] $metaData an array of arrays of custom data
@param bool    $merge    should we merge the meta data

@return $this
349095
public function setMetaData(array $metaData, $merge = true)
    {
        $this->config->setMetaData($metaData, $merge);

        return $this;
    }
1301194
protected function setPropertyMetadata($key, PropertyMetadataInterface $metadata)
    {
        $metadata->merge($this);
        $this->properties[$key] = $metadata;

        return $this;
    }
1373098
private function doPutMetadata(EntityMetadata $metadata)
    {
        if (true === $this->hasCache()) {
            $this->cache->putMetadataInCache($metadata);
        }
        $this->setToMemory($metadata);
        return $this;
    }
1299627
public function setMetatags(array $metatags)
    {
        if(array_key_exists('title', $metatags)) $this->metaTitle = $metatags['title'];
        if(array_key_exists('description', $metatags)) $this->metaDescription = $metatags['description'];
        if(array_key_exists('keywords', $metatags)) $this->metaKeywords = $metatags['keywords'];

        return $this;
    }
1085546
public function setOptions(array $options, $merge = true)
    {
        $this->options = $merge ? ArrayHelper::merge($this->options, $options) : $options;

        return $this;
    }
47082
public function add_metadata(array $metadata, $rcpt = null)
	{
		if (is_null($rcpt))
		{
			$this->metadata = $metadata;
		}
		else
		{
			$this->rcpt_metadata[$rcpt] = $metadata;
		}

		return $this;
	}
401692
public function merge(Config $merge)
    {
        foreach ($merge as $key => $value) {
            if (array_key_exists($key, $this->data)) {
                if ($value instanceof self && $this->data[$key] instanceof self) {
                    $this->data[$key]->merge($value);
                } else {
                    if ($value instanceof self) {
                        $this->data[$key] = new static($value->toArray(), $this->prefix ? "$this->prefix.$key" : "$key");
                    } else {
                        $this->data[$key] = $value;
                    }
                }
            } else {
                if ($value instanceof self) {
                    $this->data[$key] = new static($value->toArray(), $this->prefix ? "$this->prefix.$key" : "$key");
                } else {
                    $this->data[$key] = $value;
                }
            }
        }

        return $this;
    }
623289
public function setMeta($meta): self
    {
        $this->hasMeta = true;
        $this->meta    = $meta;

        return $this;
    }
1051420
public function merge(MetadataInterface $metadata): void
    {
        parent::merge($metadata);

        $this->customRepositoryClassName = $this->customRepositoryClassName ?? $metadata->customRepositoryClassName;
        $this->collectionName = $this->collectionName ?? $metadata->collectionName;
        $this->identifier = $this->identifier ?? $metadata->identifier;
        $this->idGeneratorType = $this->idGeneratorType ?? $metadata->idGeneratorType;

        $this->eagerFieldNames = array_unique(array_merge($this->eagerFieldNames, $metadata->eagerFieldNames));
        sort($this->eagerFieldNames);
    }
1119494
public function setContent($content, $metadata = array())
    {
        $this->content = $content;
        $this->setMetadata($metadata);

        return $this->size = $this->filesystem->write($this->key, $this->content, true);
    }
99834
public function load(array $config, $merge = true)
    {
        if (true === $merge) {
            $this->internalMerge($config, $this->configsContainer);
        } else {
            $this->configsContainer = $config;
        }
    }
1360733
public function fields($fields, $merge = false) {
        if (!is_array($fields)) {
            $fields = func_get_args();
            $merge = false;
        }

        if ($merge) {
            $fields = array_merge($this->_fields, $fields);
        }

        // When doing a select, unique the field list
        if ($this->getType() === self::SELECT) {
            $fields = array_values(array_unique($fields, SORT_REGULAR)); // SORT_REGULAR allows for objects
        }

        $this->_fields = $fields;

        return $this;
    }
777243
public static function merge($data, $merge) {
		foreach ($data as $key => $config) {
			$name = $key;
			if (is_numeric($name)) {
				$name = $config;
			}

			foreach ($merge as $k => $v) {
				if (in_array($name, array($k, $v), true)) {
					unset($data[$key]);
				}
			}

		}

		return array_merge($data, $merge);
	}
1308202
public function addMeta(array $data):SuccessResponseBuilder
    {
        $this->meta = array_merge($this->meta, $data);

        return $this;
    }
264883
protected function mergeValues(array $values, $merge = true)
    {
        $this->values = $merge ? array_merge($this->values, $values) : $values;
        return $this;
    }
310687
public function setMetadata(\TechPromux\DynamicQueryBundle\Entity\Metadata $metadata)
    {
        $this->metadata = $metadata;

        return $this;
    }
508062
public function setMetadata(array $metadata)
    {
        $this->metadata = $this->validator->parseMetadata(array_filter($metadata, function ($field): bool {
            // 文字列型以外の (明らかに構文解析済みである) フィールドは構文解析器にかけない
            return is_string($field);
        })) + $metadata;
    }