src/Entity/CRM/State.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\StateRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: StateRepository::class)]class State{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\OneToMany(mappedBy: 'state', targetEntity: BhpInspector::class, orphanRemoval: true)]private Collection $bhpInspectors;public function __construct(){$this->bhpInspectors = new ArrayCollection();}public function __toString(): string{return $this->name;}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;}/*** @return Collection<int, BhpInspector>*/public function getBhpInspectors(): Collection{return $this->bhpInspectors;}public function addBhpInspector(BhpInspector $bhpInspector): static{if (!$this->bhpInspectors->contains($bhpInspector)) {$this->bhpInspectors->add($bhpInspector);$bhpInspector->setState($this);}return $this;}public function removeBhpInspector(BhpInspector $bhpInspector): static{if ($this->bhpInspectors->removeElement($bhpInspector)) {// set the owning side to null (unless already changed)if ($bhpInspector->getState() === $this) {$bhpInspector->setState(null);}}return $this;}}