DeletedResource
class DeletedResource implements JsonSerializable
A DeletedResource encodes metadata about a deleted resource.
Properties
protected SystemProperties | $sys |
Methods
Returns the ID of the resource.
Returns the last revision of the resource before it was deleted.
Returns the time when the resource was updated.
Returns the time when the resource was created.
Returns the time when the resource was deleted.
Returns an object to be used by json_encode
to serialize objects of this class.
Details
at line 26
__construct(SystemProperties $sys)
DeletedResource constructor.
at line 38
string
getId()
Returns the ID of the resource.
at line 50
Space
getSpace()
Returns the space the resource used to belong to.
at line 62
int
getRevision()
Returns the last revision of the resource before it was deleted.
at line 74
DateTimeImmutable
getUpdatedAt()
Returns the time when the resource was updated.
at line 86
DateTimeImmutable
getCreatedAt()
Returns the time when the resource was created.
at line 98
DateTimeImmutable
getDeletedAt()
Returns the time when the resource was deleted.
at line 111
object
jsonSerialize()
Returns an object to be used by json_encode
to serialize objects of this class.