class DeletedResource implements JsonSerializable

A DeletedResource encodes metadata about a deleted resource.

Properties

protected SystemProperties $sys

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

at line 29
__construct(SystemProperties $sys)

DeletedResource constructor.

Parameters

SystemProperties $sys

at line 39
string getId()

Returns the ID of the resource.

Return Value

string

at line 49
Space getSpace()

Returns the space the resource used to belong to.

Return Value

Space

at line 59
int getRevision()

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

Return Value

int

at line 69
DateTimeImmutable getUpdatedAt()

Returns the time when the resource was updated.

Return Value

DateTimeImmutable

at line 79
DateTimeImmutable getCreatedAt()

Returns the time when the resource was created.

Return Value

DateTimeImmutable

at line 89
DateTimeImmutable getDeletedAt()

Returns the time when the resource was deleted.

Return Value

DateTimeImmutable

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