<?php
namespace App\Message;
class LoggingMessage
{
private int $objectId;
private string $className;
private int $userId;
private array $changeSet;
private array $payloadBefore;
private array $payloadAfter;
private \DateTimeImmutable $date;
public function __construct(
string $className,
int $userId,
array $changeSet,
array $payloadBefore,
array $payloadAfter,
int $objectId,
\DateTimeImmutable $date
) {
$this->objectId = $objectId;
$this->className = $className;
$this->userId = $userId;
$this->changeSet = $changeSet;
$this->payloadBefore = $payloadBefore;
$this->payloadAfter = $payloadAfter;
$this->date = $date;
}
public function getObjectId(): int
{
return $this->objectId;
}
public function getClassName(): string
{
return $this->className;
}
public function getUserId(): int{
return $this->userId;
}
public function getChangeSet(): array
{
return $this->changeSet;
}
public function getPayloadBefore(): array
{
return $this->payloadBefore;
}
public function getPayloadAfter(): array
{
return $this->payloadAfter;
}
public function getDate(): \DateTimeImmutable
{
return $this->date;
}
}