Adjust docblocks

This commit is contained in:
brabli
2025-11-27 14:55:01 +00:00
parent 607891913d
commit 2bf5a83426

View File

@@ -9,7 +9,7 @@ use Pcm\MetadataBundle\Exception\MissingKeyException;
interface MetadataInterface interface MetadataInterface
{ {
/** /**
* Retrieve a value by it's key. * Retrieve a value from the metadata by it's key.
* *
* @return scalar|scalar[] * @return scalar|scalar[]
* *
@@ -18,18 +18,18 @@ interface MetadataInterface
public function get(string $key): mixed; public function get(string $key): mixed;
/** /**
* Sets a value against the given key. This overwrites * Sets a value against the given key.
* any existing value. * If this key is already set, it's value will be overwritten.
* *
* @param scalar|scalar[] $value * @param scalar|scalar[] $value
*/ */
public function set(string $key, mixed $value): static; public function set(string $key, mixed $value): static;
/** /**
* Whether a key has been set on the metadata. * Whether a key is set on the metadata.
*
* @return bool `true` if the key is set (regardless of what the value is), otherwise `false`.
*/ */
public function has(string $key): bool; public function has(string $key): bool;
} }