src/Entity/CRM/DebtNote.php line 12
<?phpnamespace App\Entity\CRM;use App\Entity\CRM\Order;use App\Repository\DebtNoteRepository;use DateTime;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DebtNoteRepository::class)]class DebtNote{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::TEXT)]private ?string $note = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $dateAdded = null;#[ORM\ManyToOne(inversedBy: 'debtNotes')]private ?Admin $admin = null;#[ORM\ManyToOne(inversedBy: 'debtNotes')]private ?Consultant $Consultant = null;#[ORM\ManyToOne(inversedBy: 'debtNotes')]private ?Order $orderId = null;public function __construct(){$this->dateAdded = new DateTime();}public function getId(): ?int{return $this->id;}public function getNote(): ?string{return $this->note;}public function setNote(string $note): static{$this->note = $note;return $this;}public function getDateAdded(): ?\DateTimeInterface{return $this->dateAdded;}public function setDateAdded(\DateTimeInterface $dateAdded): static{$this->dateAdded = $dateAdded;return $this;}public function getAdmin(): ?Admin{return $this->admin;}public function setAdmin(?Admin $admin): static{$this->admin = $admin;return $this;}public function getConsultant(): ?Consultant{return $this->Consultant;}public function setConsultant(?Consultant $Consultant): static{$this->Consultant = $Consultant;return $this;}public function getOrderId(): ?Order{return $this->orderId;}public function setOrderId(?Order $orderId): static{$this->orderId = $orderId;return $this;}}