src/Entity/CRM/OrderNoteType.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\OrderNoteTypeRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: OrderNoteTypeRepository::class)]class OrderNoteType{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $type = null;#[ORM\OneToMany(mappedBy: 'orderNoteType', targetEntity: OrderNote::class)]private Collection $orderNotes;public function __construct(){$this->orderNotes = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getType(): ?string{return $this->type;}public function setType(string $type): static{$this->type = $type;return $this;}/*** @return Collection<int, OrderNote>*/public function getOrderNotes(): Collection{return $this->orderNotes;}public function addOrderNote(OrderNote $orderNote): static{if (!$this->orderNotes->contains($orderNote)) {$this->orderNotes->add($orderNote);$orderNote->setOrderNoteType($this);}return $this;}public function removeOrderNote(OrderNote $orderNote): static{if ($this->orderNotes->removeElement($orderNote)) {// set the owning side to null (unless already changed)if ($orderNote->getOrderNoteType() === $this) {$orderNote->setOrderNoteType(null);}}return $this;}}