src/Entity/CRM/BhpStatus.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\BhpStatusRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BhpStatusRepository::class)]class BhpStatus{#[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\Column]private ?bool $isContract = null;#[ORM\Column]private ?bool $isBlockedForBhp = null;#[ORM\Column]private ?bool $isEnded = null;#[ORM\OneToMany(mappedBy: 'bhpStatus', targetEntity: BhpOrderProduct::class)]private Collection $BhpOrderProducts;public function __construct(){$this->BhpOrderProducts = new ArrayCollection();}public function __toString(): string{return $this->getId() . ' ' . $this->getName();}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;}public function isIsContract(): ?bool{return $this->isContract;}public function setIsContract(bool $isContract): static{$this->isContract = $isContract;return $this;}public function isIsBlockedForBhp(): ?bool{return $this->isBlockedForBhp;}public function setIsBlockedForBhp(bool $isBlockedForBhp): static{$this->isBlockedForBhp = $isBlockedForBhp;return $this;}public function isIsEnded(): ?bool{return $this->isEnded;}public function setIsEnded(bool $isEnded): static{$this->isEnded = $isEnded;return $this;}/*** @return Collection<int, BhpOrderProduct>*/public function getBhpOrderProducts(): Collection{return $this->BhpOrderProducts;}public function addBhpOrderProduct(BhpOrderProduct $BhpOrderProduct): static{if (!$this->BhpOrderProducts->contains($BhpOrderProduct)) {$this->BhpOrderProducts->add($BhpOrderProduct);$BhpOrderProduct->setBhpStatus($this);}return $this;}public function removeBhpOrderProduct(BhpOrderProduct $BhpOrderProduct): static{if ($this->BhpOrderProducts->removeElement($BhpOrderProduct)) {// set the owning side to null (unless already changed)if ($BhpOrderProduct->getBhpStatus() === $this) {$BhpOrderProduct->setBhpStatus(null);}}return $this;}}