Meta Data Or Headers

@param null|string $metaKey Specific meta key to retrieve

@return array
@return null|mixed When meta key given
349652
function getMeta($metaKey = null)
    {
        if ($metaKey !== null)
            return (isset($this->meta[$metaKey])) ? $this->meta[$metaKey] : null;

        return $this->meta;
    }
638828
public function getMeta($metaKey)
    {
        /** @var Collection $matchingMeta */
        $matchingMeta = $this->meta->filter(
            function (Meta $meta) use ($metaKey) {
                return $meta->getKey() == $metaKey;
            }
        );

        return $matchingMeta->count() == 1 ? $matchingMeta->first()->getValue() : null;
    }
953147
public function getData( $key = NULL ){
		if( is_null( $key ) )
			return $this->data ;
		if( !array_key_exists( $key, $this->data ) )
			return NULL;
		return $this->data[$key];
	}
248096
public function get_metadata($key = null, $rcpt = null)
	{
		if (is_null($rcpt))
		{
			return \Arr::get($this->metadata, $key);
		}
		elseif (isset($this->rcpt_metadata[$rcpt]))
		{
			return \Arr::get($this->rcpt_metadata[$rcpt], $key);
		}
	}
41439
public function getHeader(string $key): ?string
    {
        $key = self::processKey($key);

        return isset($this->headers[$key]) ? $this->headers[$key] : null;
    }
806690
public function getMetadataArray(array $headers)
    {
        $metadata = [];
        foreach ($headers as $key => $value) {
            $isMetadataHeader = Utilities::startsWith(
                strtolower($key),
                Resources::X_MS_META_HEADER_PREFIX
            );

            if ($isMetadataHeader) {
                $MetadataName = str_replace(
                    Resources::X_MS_META_HEADER_PREFIX,
                    Resources::EMPTY_STRING,
                    strtolower($key)
                );

                $metadata[$MetadataName] = $value;
            }
        }

        return $metadata;
    }
162781
public function add_meta( $meta_key, $meta_value ) {
		return add_metadata( $this->meta_type, $this->get_id(), $meta_key, $meta_value, true );
	}
142654
public function getMetadata(): array
    {
        if ($this->metadata === null) {
            $this->metadata = $this->readMetadata();

            ksort($this->metadata);
        }

        return $this->metadata;
    }
45284
public function getAttributeFromMeta($key)
    {
        if (! $key) {
            return;
        }

        // Here we will determine if the model base class itself contains this given key
        // since we do not want to treat any of those methods are relationships since
        // they are all intended as helper methods and none of these are relations.
        if (method_exists(self::class, $key)) {
            return;
        }

        $meta = json_decode($this->getAttribute('meta'));
        if (isset($meta->$key)) {
            return $meta->$key;
        }

        $user = $meta->user;
        if (isset($user->$key)) {
            return $user->$key;
        }
    }
106503
public static function meta($key = null, $value = null) {
		$self = static::_object();
		$isArray = is_array($key);

		if ($value || $isArray) {
			$value ? $self->_meta[$key] = $value : $self->_meta = $key + $self->_meta;
			return;
		}
		return $self->_getMetaKey($isArray ? null : $key);
	}
325310
public function getMetadata($pluginName, $key)
    {
        return isset($this->requestMetadata[$pluginName][$key]) ? $this->requestMetadata[$pluginName][$key] : null;
    }
939575
public function getData($key = null)
    {
        if (null === $key) {
            return $this->data;
        }
        
        $return = $this->data;
        foreach (explode('.', $key) as $subKey) {
            if (isset($return[$subKey])) {
                $return = $return[$subKey];
            } else {
                return null;
            }
        }
        return $return;
    }
1112547
public function getMetaDataValue($key) {

            return (isset($this->meta[$key]) ? $this->meta[$key] : null);

        }
1065938
public function getHeaderValue($key)
    {
        return isset($this->headers[$key]) ? $this->headers[$key] : null;
    }
745135
public function getMetadataValue($key)
    {
        return isset($this->metadata[$key]) ? $this->metadata[$key] : null;
    }
511552
public function meta($metaKey = '', $single = true)
	{
		$meta_values = get_post_meta($this->ID, $metaKey, $single);

		return $meta_values;
	}
248298
public function get_meta( $key ) {
		$metadata = $this->get_metadata();

		if ( ! array_key_exists( $key, $metadata ) ) {
			return;
		}

		return $metadata[ $key ];
	}