Added the has
method
This commit is contained in:
parent
2667f3d11c
commit
d4cb852564
|
@ -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.
|
* Retrieves all metadata as an associative array.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user