Skip to content

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.

final readonly class ObjectSummary

Since4.2.0
SourceObjectSummary.php
PropertyTypeDescription
$etag?``stringreadonly.
$keystringreadonly.
$lastModified?DateTimeImmutablereadonly.
$size?``intreadonly.

public function __construct(string $key, ?int $size, ?DateTimeImmutable $lastModified, ?string $etag): mixed

ParameterTypeDescription
$keystring
$size?``int
$lastModified?DateTimeImmutable
$etag?``string

Returns mixed