*/ final class Revision { /** @var string Resource Identifier */ private $resourceId; /** @var int Version number of the resource */ private $version; /** @var int Creation date of the revision in UNIX timestamp */ private $created; /** @var string User who created the revision */ private $author; /** @var string Commit message */ private $message; public function __construct(string $resourceId, int $version, int $created, string $author, string $message) { $this->resourceId = $resourceId; $this->version = $version; $this->created = $created; $this->author = $author; $this->message = $message; } /** * Returns the revisioned resource identifier * @return string */ public function getResourceId() { return $this->resourceId; } /** * Returns the version of the revision * @return int */ public function getVersion() { return $this->version; } /** * Returns the message associated with the revision * @return string */ public function getMessage() { return $this->message; } /** * Returns the creation date as epoch timestamp * @return int */ public function getDateCreated() { return $this->created; } /** * Returns the identifier of the user that created * the revision * @return string */ public function getAuthorId() { return $this->author; } }