class DeletedAsset extends DeletedResource

A DeletedAsset describes an asset that has been deleted.

Properties

protected SystemProperties $sys from DeletedResource

Methods

__construct(SystemProperties $sys)

DeletedResource constructor.

string
getId()

Returns the ID of the resource.

getSpace()

Returns the space the resource used to belong to.

int
getRevision()

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

getUpdatedAt()

Returns the time when the resource was updated.

getCreatedAt()

Returns the time when the resource was created.

getDeletedAt()

Returns the time when the resource was deleted.

object
jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Details

in DeletedResource at line 29
__construct(SystemProperties $sys)

DeletedResource constructor.

Parameters

SystemProperties $sys

in DeletedResource at line 39
string getId()

Returns the ID of the resource.

Return Value

string

in DeletedResource at line 49
Space getSpace()

Returns the space the resource used to belong to.

Return Value

Space

in DeletedResource at line 59
int getRevision()

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

Return Value

int

in DeletedResource at line 69
DateTimeImmutable getUpdatedAt()

Returns the time when the resource was updated.

Return Value

DateTimeImmutable

in DeletedResource at line 79
DateTimeImmutable getCreatedAt()

Returns the time when the resource was created.

Return Value

DateTimeImmutable

in DeletedResource at line 89
DateTimeImmutable getDeletedAt()

Returns the time when the resource was deleted.

Return Value

DateTimeImmutable

in DeletedResource at line 101
object jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Return Value

object

See also

http://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize