1
0

Added the has method

This commit is contained in:
Richard Dern 2024-05-15 01:01:10 +02:00
parent 2667f3d11c
commit d4cb852564

View File

@ -147,6 +147,17 @@ public function get($key, $default = null, bool $respectDots = true)
}
}
/**
* Indicates if a particular key exists in metadata store.
*
* @param mixed $key The key of the value to retrieve.
* @return mixed The value of the specified key, or the default value.
*/
public function has($key)
{
return array_key_exists($key, $this->content);
}
/**
* Retrieves all metadata as an associative array.
*