$key
$key : string
What a store knows about one object without reading it.
__construct(string $key, int $size, string|null $etag = null, int|null $modified = null, string|null $storageClass = null, array$metadata = []) : mixed
Constructs object metadata.
| string | $key | The object key, relative to the store root. |
| int | $size | Size in bytes. |
| string|null | $etag | The endpoint's entity tag, stored exactly as it was returned. Quotes are part of the value on several providers, and R2 rejects a CompleteMultipartUpload whose part tags were normalised, so it is never trimmed. |
| int|null | $modified | Unix timestamp of the last write, or NULL when the endpoint does not report one. |
| string|null | $storageClass | The tier the object sits in, or NULL. |
| array |
$metadata | User metadata the object carries. |