src/Entity/CRM/DebtNote.php line 12

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