log->getId(); } /** * The ID of the version for this specific resource. */ public function getVersion(): ?int { return $this->log->getVersion(); } /** * The type of action that performed the recorded changes. */ public function getAction(): ?string { return $this->log->getAction(); } /** * The type of the recorded resource. */ public function getResource(): string { return ApiService::toResource($this->log->getObjectClass()); } /** * The ID of the recorded resource. */ public function getResourceId(): int { return $this->log->getObjectId(); } /** * The changed resource data, i.e the new values of the changed properties. */ public function getResourceChanges() { return $this->log->getData(); } /** * The date at which this version was created. */ public function getDateCreated(): ?\DateTimeInterface { return $this->log->getLoggedAt(); } }