src/Entity/CRM/CustomerHistory.php line 11

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\CustomerHistoryRepository;
  4. use DateTimeInterface;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassCustomerHistoryRepository::class)]
  8. class CustomerHistory
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'customerHistories')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?Customer $customer null;
  17.     #[ORM\ManyToOne(inversedBy'customerHistories')]
  18.     private ?Admin $admin null;
  19.     #[ORM\ManyToOne(inversedBy'customerHistories')]
  20.     private ?Consultant $consultant null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?DateTimeInterface $dateAdded null;
  23.     #[ORM\Column(typeTypes::TEXT)]
  24.     private ?string $comment null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getCustomer(): ?Customer
  30.     {
  31.         return $this->customer;
  32.     }
  33.     public function setCustomer(?Customer $customer): static
  34.     {
  35.         $this->customer $customer;
  36.         return $this;
  37.     }
  38.     public function getAdmin(): ?Admin
  39.     {
  40.         return $this->admin;
  41.     }
  42.     public function setAdmin(?Admin $admin): static
  43.     {
  44.         $this->admin $admin;
  45.         return $this;
  46.     }
  47.     public function getConsultant(): ?Consultant
  48.     {
  49.         return $this->consultant;
  50.     }
  51.     public function setConsultant(?Consultant $consultant): static
  52.     {
  53.         $this->consultant $consultant;
  54.         return $this;
  55.     }
  56.     public function getDateAdded(): ?DateTimeInterface
  57.     {
  58.         return $this->dateAdded;
  59.     }
  60.     public function setDateAdded(DateTimeInterface $dateAdded): static
  61.     {
  62.         $this->dateAdded $dateAdded;
  63.         return $this;
  64.     }
  65.     public function getComment(): ?string
  66.     {
  67.         return $this->comment;
  68.     }
  69.     public function setComment(string $comment): static
  70.     {
  71.         $this->comment $comment;
  72.         return $this;
  73.     }
  74. }