src/Entity/CRM/DebtStatus.php line 13
<?phpnamespace App\Entity\CRM;use App\Entity\CRM\Order;use App\Repository\DebtStatusRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DebtStatusRepository::class)]class DebtStatus{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column]private ?bool $isActive = null;#[ORM\OneToMany(mappedBy: 'debtStatus', targetEntity: Order::class)]private Collection $orders;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $mailText = null;#[ORM\Column(length: 255, nullable: true)]private ?string $mailSubject = null;#[ORM\Column]private bool $sendMail = false;public function __toString(): string{return $this->name;}public function __construct(){$this->orders = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): static{$this->name = $name;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}/*** @return Collection<int, Order>*/public function getOrders(): Collection{return $this->orders;}public function addOrder(Order $order): static{if (!$this->orders->contains($order)) {$this->orders->add($order);$order->setDebtStatus($this);}return $this;}public function removeOrder(Order $order): static{if ($this->orders->removeElement($order)) {// set the owning side to null (unless already changed)if ($order->getDebtStatus() === $this) {$order->setDebtStatus(null);}}return $this;}public function getMailText(): ?string{return $this->mailText;}public function setMailText(?string $mailText): static{$this->mailText = $mailText;return $this;}public function getMailSubject(): ?string{return $this->mailSubject;}public function setMailSubject(?string $mailSubject): static{$this->mailSubject = $mailSubject;return $this;}public function isSendMail(): bool{return $this->sendMail;}public function setSendMail(bool $sendMail): static{$this->sendMail = $sendMail;return $this;}}