class DeletedAsset extends DeletedResource

A DeletedAsset describes an asset that has been deleted.

Properties

protected Client $client from BaseResource
protected SystemProperties $sys from BaseResource

Methods

__construct(array $data)

Resources in this SDK should not be built using $new Class().

asLink()

{@inheritdoc}

getId()

{@inheritdoc}

getType()

{@inheritdoc}

int|null
getRevision()

Returns the last revision of the resource before it was deleted.

DateTimeImmutable|null
getUpdatedAt()

Returns the time when the resource was updated.

DateTimeImmutable|null
getCreatedAt()

Returns the time when the resource was created.

DateTimeImmutable|null
getDeletedAt()

Returns the time when the resource was deleted.

jsonSerialize()

{@inheritdoc}

Details

in BaseResource at line 36
protected __construct(array $data)

Resources in this SDK should not be built using $new Class().

This method is only useful in testing environments, where the resource needs to be subclasses and this method made public.

Parameters

array $data

in BaseResource at line 50
SystemProperties getSystemProperties()

{@inheritdoc}

Return Value

SystemProperties

{@inheritdoc}

in BaseResource at line 69
getId()

{@inheritdoc}

in BaseResource at line 77
getType()

{@inheritdoc}

in DeletedResource at line 24
int|null getRevision()

Returns the last revision of the resource before it was deleted.

Return Value

int|null

in DeletedResource at line 34
DateTimeImmutable|null getUpdatedAt()

Returns the time when the resource was updated.

Return Value

DateTimeImmutable|null

in DeletedResource at line 44
DateTimeImmutable|null getCreatedAt()

Returns the time when the resource was created.

Return Value

DateTimeImmutable|null

in DeletedResource at line 54
DateTimeImmutable|null getDeletedAt()

Returns the time when the resource was deleted.

Return Value

DateTimeImmutable|null

in DeletedResource at line 62
jsonSerialize()

{@inheritdoc}