@param mixed $meta

@return self
344824
public function setIdentifierMeta($meta): self
    {
        $this->meta    = $meta;
        $this->hasMeta = true;

        return $this;
    }
303198
private function getHead(Metadata $meta)
    {
        $head = new Head();

        $configuration = $meta->getConfiguration();
        $translationPrefix = $meta->getEntityTranslationPrefix();

        if (!empty($configuration['view']['index']['action_widgets'])) {
            $head->addItem('action_widgets', new HeadItem('interface.actions'));
        }
        foreach ($configuration['view']['index']['fields'] as $field => $attr) {
            if ($this->fieldBlacklistManager->isFieldBlacklisted($meta, $field, '[view][index]')) {
                continue;
            }

            $content = $translationPrefix.StringsUtil::toUnderscore($field);

            $headItem = new HeadItem($content);

            if (array_key_exists($field, $configuration['sortable_fields'])) {
                $sortablePropertyPath = !empty($configuration['sortable_fields'][$field])
                    ? $configuration['sortable_fields'][$field]
                    : $field;

                $headItem
                    ->setSortable(true)
                    ->setSortablePropertyPath($sortablePropertyPath);
            }

            $head->addItem($field, $headItem);
        }

        return $head;
    }
626539
protected function setSeoMetadata(array $metadata)
    {
        if (is_array($this->seoMetadata)) {
            $this->seoMetadata = new ArrayIterator($this->seoMetadata);
        }

        foreach ($metadata as $key => $value) {
            if (is_array($value)) {
                $value = implode(',', $value);
            }

            $this->seoMetadata[] = [
                'name'    => $key,
                'content' => (string)$value
            ];
        }

        return $this;
    }
643240
public function setMeta($meta, $value = null)
	{
		$metas = is_array($meta) ? $meta : array($meta => $value);
		
		foreach ($metas as $m => $v) {
			if (!is_object($m)) {
				$m = $this->findMetaByNameOrCreate($m);
			}
			
			if (!$m || !$m instanceof Eloquent) {
				continue;
			}
			
			if ($this->hasMeta($m)) {
				if (is_null($v)) {
					$this->unsetMeta($m);
					continue;
				}
				
				$attributes = array(
					'value'           => $v,
					'meta_updated_at' => date('Y-m-d H:i:s'),
				);
				$this->metas()->updateExistingPivot($m->id, array_merge($this->metableTableSyncAttributes(), $attributes));
				$this->metas->find($m->id)->pivot->value = $v;
				$this->metas->find($m->id)->pivot->meta_updated_at = $attributes['meta_updated_at'];
			}
			else {
				if (is_null($v)) {
					continue;
				}
				
				$this->metas()->attach($m, array_merge($this->metableTableSyncAttributes(), array(
					'value'           => $v,
					'meta_created_at' => date('Y-m-d H:i:s'),
					'meta_updated_at' => date('Y-m-d H:i:s'),
				)));
				
				$m->increment('num_items');
				
				$this->metas->add($m);
			}
		}
		
		return $this;
	}
116539
public function addMetadata(Metadata $metadata)
    {
        $value = array_merge($this->value(), $metadata->value());

        return new static($value);
    }
583158
public function setMeta()
    {
        if ($meta = $this->resource->getMeta()) {
            $this->meta = $meta;
        } else {
            unset($this->meta);
        }

        return $this;
    }
1090058
public function whereAnyMetaId(array $metas)
	{
		$filters = array();
		
		foreach ($metas as $meta => $data) {
			$value = is_array($data) ? Arr::get($data, 0) : $data;
			$operator = is_array($data) ? Arr::get($data, 1, '=') : '=';
			
			$filters[] = array('id' => $meta, 'value' => $value, 'operator' => $operator);
		}
		
		$this->filters[]['metas'] = $filters;
		
		return $this;
	}
942705
public function unsetMeta($meta = null)
	{
		$args = func_get_args();
		
		if (0 == count($args)) {
			$args[] = $this->metas;
		}
		
		foreach ($args as $arg) {
			$metas = ($arg instanceof Collection) ? $arg->all() : is_array($arg) ? $arg : array($arg);
			
			foreach ($metas as $m) {
				if (!is_object($m)) {
					$m = $this->findMetaByName($m);
				}
				
				if (!$m || !$m instanceof Eloquent) {
					continue;
				}
				
				if (!$this->hasMeta($m)) {
					return;
				}
				
				$this->metas()->detach($m);
				
				$m->decrement('num_items');
				
				foreach ($this->metas as $idx => $cur_meta) {
					if ($cur_meta->getKey() == $m->getKey()) {
						$this->metas->pull($idx);
						break;
					}
				}
			}
		}
		
		return $this;
	}
341807
public function merge(ProcessingMetadata $metadata)
    {
        return new self(ArrayUtils::merge($this->metadata->toArray(), $metadata->toArray()));
    }
310687
public function setMetadata(\TechPromux\DynamicQueryBundle\Entity\Metadata $metadata)
    {
        $this->metadata = $metadata;

        return $this;
    }
719922
public function hasMeta($meta)
	{
		$found = $this->metas->filter(function ($t) use ($meta) {
			if (is_object($meta)) {
				return $t->id == $meta->id;
			}
			else {
				return $t->name == $meta;
			}
		});
		
		return !$found->isEmpty();
	}
490438
public function prepareMeta(array $meta)
    {
        $meta = parent::getMeta();

        /** @var ModifierInterface $modifier */
        foreach ($this->pool->getModifiersInstances() as $modifier) {
            $meta = $modifier->modifyMeta($meta);
        }
        return $meta;
    }
1215483
public function setMeta(array $meta)
    {
        $headers = [];
        $metaType = $this->objectMetaType();

        // We will replace any 'X-{Object}-Meta-' prefixes in meta name
        // and prepend final header names with same prefix so API will
        // receive sanitized headers and won't produce any errors.

        foreach ($meta as $name => $value) {
            $key = str_replace('X-'.$metaType.'-Meta-', '', $name);
            $headers['X-'.$metaType.'-Meta-'.$key] = $value;
        }

        $response = $this->apiClient()->request('POST', $this->absolutePath(), ['headers' => $headers]);

        if ($response->getStatusCode() !== 202) {
            throw new ApiRequestFailedException('Unable to update container meta data.', $response->getStatusCode());
        }

        return true;
    }
290351
public function setMetadataArray(array $metadata)
    {
        foreach ($this->routes as $route)
            $route->setMetadataArray($metadata);
        return $this;
    }
145699
protected function setMetadata($metadata)
    {
        if ($metadata !== null && !($metadata instanceof Metadata)) {
            throw new \InvalidArgumentException('$metadata must be instance of Metadata');
        }

        $this->metadata = $metadata;
    }
578165
public function metadata($metadata = null) {
        if ($metadata === null) {
            return $this->metadata;
        }

        $this->metadata = (bool) $metadata;

        return $this;
    }
744362
public function setMetadata(string $metadata): self
    {
        $this->isValidString($metadata, 1000);

        $this->metadata = $metadata;

        return $this;
    }