src/Entity/CRM/OrderNote.php line 12
<?phpnamespace App\Entity\CRM;use App\Repository\OrderNoteRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: OrderNoteRepository::class)]class OrderNote{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $dateAdded = null;#[ORM\Column(type: Types::TEXT)]private ?string $description = null;#[ORM\ManyToOne(inversedBy: 'orderNotes')]private ?Order $orderInstance = null;#[ORM\ManyToOne(inversedBy: 'orderNotes')]private ?Admin $admin = null;#[ORM\ManyToOne(inversedBy: 'orderNotes')]private ?Consultant $consultant = null;#[ORM\ManyToOne(inversedBy: 'orderNotes')]private ?OrderNoteType $orderNoteType = null;#[ORM\ManyToOne(inversedBy: 'orderEditedNotes')]private ?Admin $lastEditedBy = null;#[ORM\ManyToOne(inversedBy: 'orderNotes')]private ?BhpInspector $bhpInspector = null;#[ORM\OneToMany(mappedBy: 'orderNoteForExtension', targetEntity: Order::class)]private Collection $extensionOrders;public function __construct(){$this->extensionOrders = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getDateAdded(): ?\DateTimeInterface{return $this->dateAdded;}public function setDateAdded(\DateTimeInterface $dateAdded): static{$this->dateAdded = $dateAdded;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(string $description): static{$this->description = $description;return $this;}public function getOrderInstance(): ?Order{return $this->orderInstance;}public function setOrderInstance(?Order $orderInstance): static{$this->orderInstance = $orderInstance;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 getOrderNoteType(): ?OrderNoteType{return $this->orderNoteType;}public function setOrderNoteType(?OrderNoteType $orderNoteType): static{$this->orderNoteType = $orderNoteType;return $this;}public function getLastEditedBy(): ?Admin{return $this->lastEditedBy;}public function setLastEditedBy(?Admin $lastEditedBy): static{$this->lastEditedBy = $lastEditedBy;return $this;}public function getBhpInspector(): ?BhpInspector{return $this->bhpInspector;}public function setBhpInspector(?BhpInspector $bhpInspector): static{$this->bhpInspector = $bhpInspector;return $this;}/*** @return Collection<int, Order>*/public function getExtensionOrders(): Collection{return $this->extensionOrders;}public function addExtensionOrder(Order $extensionOrder): static{if (!$this->extensionOrders->contains($extensionOrder)) {$this->extensionOrders->add($extensionOrder);$extensionOrder->setOrderNoteForExtension($this);}return $this;}public function removeExtensionOrder(Order $extensionOrder): static{if ($this->extensionOrders->removeElement($extensionOrder)) {// set the owning side to null (unless already changed)if ($extensionOrder->getOrderNoteForExtension() === $this) {$extensionOrder->setOrderNoteForExtension(null);}}return $this;}}