src/Entity/CRM/BhpOrderProduct.php line 15
<?phpnamespace App\Entity\CRM;use App\Entity\CRM\Order;use App\Entity\CRM\OrderProduct;use App\Repository\BhpOrderProductRepository;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BhpOrderProductRepository::class)]class BhpOrderProduct{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?DateTimeInterface $dateOfAssignment = null;#[ORM\ManyToOne(inversedBy: 'BhpOrderProducts')]private ?BhpStatus $bhpStatus = null;#[ORM\ManyToOne(inversedBy: 'BhpOrderProducts')]private ?Branch $branch = null;#[ORM\ManyToOne(inversedBy: 'BhpOrderProducts')]private ?Order $orderInstance = null;#[ORM\ManyToOne(inversedBy: 'BhpOrderProducts')]private ?OrderProduct $orderProduct = null;#[ORM\ManyToOne(inversedBy: 'bhpOrderProducts')]private ?BhpInspector $bhpInspector = null;#[ORM\OneToMany(mappedBy: 'bhpOrderProduct', targetEntity: BhpOrderProductSettlements::class, orphanRemoval: true)]private Collection $bhpOrderProductSettlements;#[ORM\OneToMany(mappedBy: 'BhpOrderProduct', targetEntity: BhpJournals::class, orphanRemoval: true)]private Collection $bhpJournals;#[ORM\ManyToMany(targetEntity: Implementer::class, inversedBy: 'bhpOrderProducts')]private Collection $implementer;public function __construct(){$this->bhpOrderProductSettlements = new ArrayCollection();$this->bhpJournals = new ArrayCollection();$this->implementer = new ArrayCollection();}public function __toString(): string{return $this->getOrderProduct();}public function getId(): ?int{return $this->id;}public function getDateOfAssignment(): ?DateTimeInterface{return $this->dateOfAssignment;}public function setDateOfAssignment(DateTimeInterface $dateOfAssignment): static{$this->dateOfAssignment = $dateOfAssignment;return $this;}public function getBhpStatus(): ?BhpStatus{return $this->bhpStatus;}public function setBhpStatus(?BhpStatus $bhpStatus): static{$this->bhpStatus = $bhpStatus;return $this;}public function getBranch(): ?Branch{return $this->branch;}public function setBranch(?Branch $branch): static{$this->branch = $branch;return $this;}public function getOrderInstance(): ?Order{return $this->orderInstance;}public function setOrderInstance(?Order $orderInstance): static{$this->orderInstance = $orderInstance;return $this;}public function getOrderProduct(): ?OrderProduct{return $this->orderProduct;}public function setOrderProduct(?OrderProduct $orderProduct): static{$this->orderProduct = $orderProduct;return $this;}public function getBhpInspector(): ?BhpInspector{return $this->bhpInspector;}public function setBhpInspector(?BhpInspector $bhpInspector): static{$this->bhpInspector = $bhpInspector;return $this;}/*** @return Collection<int, BhpOrderProductSettlements>*/public function getBhpOrderProductSettlements(): Collection{return $this->bhpOrderProductSettlements;}public function addBhpOrderProductSettlement(BhpOrderProductSettlements $bhpOrderProductSettlements): static{if (!$this->bhpOrderProductSettlements->contains($bhpOrderProductSettlements)) {$this->bhpOrderProductSettlements->add($bhpOrderProductSettlements);$bhpOrderProductSettlements->setBhpOrderProduct($this);}return $this;}public function removeBhpOrderProductSettlement(BhpOrderProductSettlements $bhpOrderProductSettlements): static{if ($this->bhpOrderProductSettlements->removeElement($bhpOrderProductSettlements)) {// set the owning side to null (unless already changed)if ($bhpOrderProductSettlements->getBhpOrderProduct() === $this) {$bhpOrderProductSettlements->setBhpOrderProduct(null);}}return $this;}/*** @return Collection<int, BhpJournals>*/public function getBhpJournals(): Collection{return $this->bhpJournals;}public function addBhpJournal(BhpJournals $bhpJournal): static{if (!$this->bhpJournals->contains($bhpJournal)) {$this->bhpJournals->add($bhpJournal);$bhpJournal->setBhpOrderProduct($this);}return $this;}public function removeBhpJournal(BhpJournals $bhpJournal): static{if ($this->bhpJournals->removeElement($bhpJournal)) {// set the owning side to null (unless already changed)if ($bhpJournal->getBhpOrderProduct() === $this) {$bhpJournal->setBhpOrderProduct(null);}}return $this;}/*** @return Collection<int, Implementer>*/public function getImplementer(): Collection{return $this->implementer;}public function addImplementer(Implementer $implementer): static{if (!$this->implementer->contains($implementer)) {$this->implementer->add($implementer);}return $this;}public function removeImplementer(Implementer $implementer): static{$this->implementer->removeElement($implementer);return $this;}}