src/Entity/Log.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassLogRepository::class)]
  6. class Log
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'logs')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $owner;
  15.     #[ORM\ManyToOne(targetEntityUser::class)]
  16.     private $user;
  17.     #[ORM\Column(type'string'length32nullabletrue)]
  18.     private $userIP;
  19.     #[ORM\ManyToOne(targetEntityCompany::class, inversedBy'logs')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private $company;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $message;
  24.     #[ORM\Column(type'datetime')]
  25.     private $timestamp;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $oldData;
  28.     #[ORM\Column(type'text'nullabletrue)]
  29.     private $newData;
  30.     #[ORM\ManyToOne(inversedBy'logs')]
  31.     private ?ClientContact $clientContact null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getTimestamp(): ?\DateTimeInterface
  37.     {
  38.         return $this->timestamp;
  39.     }
  40.     public function setTimestamp(\DateTimeInterface $timestamp): self
  41.     {
  42.         $this->timestamp $timestamp;
  43.         return $this;
  44.     }
  45.     public function getOwner(): ?User
  46.     {
  47.         return $this->owner;
  48.     }
  49.     public function setOwner(?User $owner): self
  50.     {
  51.         $this->owner $owner;
  52.         return $this;
  53.     }
  54.     public function getMessage(): ?string
  55.     {
  56.         return $this->message;
  57.     }
  58.     public function setMessage(?string $message): self
  59.     {
  60.         $this->message $message;
  61.         return $this;
  62.     }
  63.     public function getOldData(): ?string
  64.     {
  65.         return $this->oldData;
  66.     }
  67.     public function setOldData(?string $oldData): self
  68.     {
  69.         $this->oldData $oldData;
  70.         return $this;
  71.     }
  72.     public function getNewData(): ?string
  73.     {
  74.         return $this->newData;
  75.     }
  76.     public function setNewData(?string $newData): self
  77.     {
  78.         $this->newData $newData;
  79.         return $this;
  80.     }
  81.     public function getUserIP(): ?string
  82.     {
  83.         return $this->userIP;
  84.     }
  85.     public function setUserIP(?string $userIP): self
  86.     {
  87.         $this->userIP $userIP;
  88.         return $this;
  89.     }
  90.     public function getCompany(): ?Company
  91.     {
  92.         return $this->company;
  93.     }
  94.     public function setCompany(?Company $company): self
  95.     {
  96.         $this->company $company;
  97.         return $this;
  98.     }
  99.     public function getUser(): ?User
  100.     {
  101.         return $this->user;
  102.     }
  103.     public function setUser(?User $user): self
  104.     {
  105.         $this->user $user;
  106.         return $this;
  107.     }
  108.     public function getClientContact(): ?ClientContact
  109.     {
  110.         return $this->clientContact;
  111.     }
  112.     public function setClientContact(?ClientContact $clientContact): self
  113.     {
  114.         $this->clientContact $clientContact;
  115.         return $this;
  116.     }
  117. }