src/Entity/CRM/WorkHistory.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\WorkHistoryRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassWorkHistoryRepository::class)]
  7. class WorkHistory
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $historyType null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $dateAdded null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $content null;
  19.     #[ORM\ManyToOne(inversedBy'workHistories')]
  20.     private ?Admin $admin null;
  21.     #[ORM\ManyToOne(inversedBy'workHistories')]
  22.     private ?Consultant $consultant null;
  23.     #[ORM\Column]
  24.     private ?bool $systemHistory null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getHistoryType(): ?string
  30.     {
  31.         return $this->historyType;
  32.     }
  33.     public function setHistoryType(string $historyType): static
  34.     {
  35.         $this->historyType $historyType;
  36.         return $this;
  37.     }
  38.     public function getDateAdded(): ?\DateTimeInterface
  39.     {
  40.         return $this->dateAdded;
  41.     }
  42.     public function setDateAdded(\DateTimeInterface $dateAdded): static
  43.     {
  44.         $this->dateAdded $dateAdded;
  45.         return $this;
  46.     }
  47.     public function getContent(): ?string
  48.     {
  49.         return $this->content;
  50.     }
  51.     public function setContent(string $content): static
  52.     {
  53.         $this->content $content;
  54.         return $this;
  55.     }
  56.     public function getAdmin(): ?Admin
  57.     {
  58.         return $this->admin;
  59.     }
  60.     public function setAdmin(?Admin $admin): static
  61.     {
  62.         $this->admin $admin;
  63.         return $this;
  64.     }
  65.     public function getConsultant(): ?Consultant
  66.     {
  67.         return $this->consultant;
  68.     }
  69.     public function setConsultant(?Consultant $consultant): static
  70.     {
  71.         $this->consultant $consultant;
  72.         return $this;
  73.     }
  74.     public function isSystemHistory(): ?bool
  75.     {
  76.         return $this->systemHistory;
  77.     }
  78.     public function setSystemHistory(bool $systemHistory): static
  79.     {
  80.         $this->systemHistory $systemHistory;
  81.         return $this;
  82.     }
  83. }