Dated

Trait for entities with a create and updated date

trait Dated
Copyright
2015-2016 Appertly
Since
0.3.0
License
Apache-2.0

Instance Properties

Protected
NameTypeSummary
$createdOnUTCDateTime

The document created date

$updatedOnUTCDateTime

The document updated date

Instance Methods

Public
ReturnsSignature and Description
UTCDateTime

Gets the created date

UTCDateTime

Gets the updated date

Property Details

$createdOn

protected UTCDateTime $createdOn

The document created date

$updatedOn

protected UTCDateTime $updatedOn

The document updated date

Method Details

getCreatedOn

public function getCreatedOn()

Gets the created date

Returns
TypeDescription
UTCDateTime

The created date

getUpdatedOn

public function getUpdatedOn()

Gets the updated date

Returns
TypeDescription
UTCDateTime

The updated date