ObjectSummary
One entry in a ObjectListing: the same three metadata fields ObjectMetadata carries for a single object, plus the key they describe, so a listing result and a ObjectStoreClientInterface::head() result read the same way.
Populated from a list response’s body rather than headers, so it is its own type rather than an ObjectMetadata with a key bolted on — the two are parsed differently even though they describe the same three things.
Synopsis
Section titled “Synopsis”final readonly class ObjectSummary
| Since | 4.2.0 |
| Source | ObjectSummary.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$etag | ?``string | readonly. |
$key | string | readonly. |
$lastModified | ?DateTimeImmutable | readonly. |
$size | ?``int | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $key, ?int $size, ?DateTimeImmutable $lastModified, ?string $etag): mixed
| Parameter | Type | Description |
|---|---|---|
$key | string | |
$size | ?``int | |
$lastModified | ?DateTimeImmutable | |
$etag | ?``string |
Returns mixed