src/Message/LoggingMessage.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\Message;
  3. class LoggingMessage
  4. {
  5.     private int $objectId;
  6.     private string $className;
  7.     private int $userId;
  8.     private array $changeSet;
  9.     private array $payloadBefore;
  10.     private array $payloadAfter;
  11.     private \DateTimeImmutable $date;
  12.     public function __construct(
  13.         string $className,
  14.         int $userId,
  15.         array $changeSet,
  16.         array $payloadBefore,
  17.         array $payloadAfter,
  18.         int $objectId,
  19.         \DateTimeImmutable $date
  20.     ) {
  21.         $this->objectId $objectId;
  22.         $this->className $className;
  23.         $this->userId $userId;
  24.         $this->changeSet $changeSet;
  25.         $this->payloadBefore $payloadBefore;
  26.         $this->payloadAfter $payloadAfter;
  27.         $this->date $date;
  28.     }
  29.     public function getObjectId(): int
  30.     {
  31.         return $this->objectId;
  32.     }
  33.     public function getClassName(): string
  34.     {
  35.         return $this->className;
  36.     }
  37.     public function getUserId(): int{
  38.         return $this->userId;
  39.     }
  40.     public function getChangeSet(): array
  41.     {
  42.         return $this->changeSet;
  43.     }
  44.     public function getPayloadBefore(): array
  45.     {
  46.         return $this->payloadBefore;
  47.     }
  48.     public function getPayloadAfter(): array
  49.     {
  50.         return $this->payloadAfter;
  51.     }
  52.     public function getDate(): \DateTimeImmutable
  53.     {
  54.         return $this->date;
  55.     }
  56. }