src/Entity/CRM/ImplementerOrderProduct.php line 14
<?phpnamespace App\Entity\CRM;use App\Entity\CRM\OrderProduct;use App\Entity\CRM\Product;use App\Repository\ImplementerOrderProductRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ImplementerOrderProductRepository::class)]class ImplementerOrderProduct{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'implementerOrderProducts')]#[ORM\JoinColumn(nullable: true)]private ?ImplementerOrderProductStatus $status = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $implementerOrderProductNotes = null;#[ORM\OneToMany(mappedBy: 'implementerOrderProduct', targetEntity: ImplementerOrderHistory::class, orphanRemoval: true)]private Collection $implementerOrderHistories;#[ORM\ManyToMany(targetEntity: Implementer::class, inversedBy: 'implementerOrderProducts')]private Collection $implementer;#[ORM\ManyToOne(inversedBy: 'implementerOrderProducts')]private ?Product $product = null;#[ORM\ManyToOne(inversedBy: 'implementerOrderProducts')]#[ORM\JoinColumn(nullable: false)]private ?OrderProduct $orderProduct = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $receivedAnswers = null;public function __construct(){$this->implementerOrderHistories = new ArrayCollection();$this->implementer = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getStatus(): ?ImplementerOrderProductStatus{return $this->status;}public function setStatus(?ImplementerOrderProductStatus $status): static{$this->status = $status;return $this;}public function getImplementerOrderProductNotes(): ?string{return $this->implementerOrderProductNotes;}public function setImplementerOrderProductNotes(?string $implementerOrderProductNotes): static{$this->implementerOrderProductNotes = $implementerOrderProductNotes;return $this;}/*** @return Collection<int, ImplementerOrderHistory>*/public function getImplementerOrderHistories(): Collection{return $this->implementerOrderHistories;}public function addImplementerOrderHistory(ImplementerOrderHistory $implementerOrderHistory): static{if (!$this->implementerOrderHistories->contains($implementerOrderHistory)) {$this->implementerOrderHistories->add($implementerOrderHistory);$implementerOrderHistory->setImplementerOrderProduct($this);}return $this;}public function removeImplementerOrderHistory(ImplementerOrderHistory $implementerOrderHistory): static{if ($this->implementerOrderHistories->removeElement($implementerOrderHistory)) {// set the owning side to null (unless already changed)if ($implementerOrderHistory->getImplementerOrderProduct() === $this) {$implementerOrderHistory->setImplementerOrderProduct(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;}public function getProduct(): ?Product{return $this->product;}public function setProduct(?Product $product): static{$this->product = $product;return $this;}public function getOrderProduct(): ?OrderProduct{return $this->orderProduct;}public function setOrderProduct(?OrderProduct $orderProduct): static{$this->orderProduct = $orderProduct;return $this;}public function getReceivedAnswers(): ?\DateTimeInterface{return $this->receivedAnswers;}public function setReceivedAnswers(?\DateTimeInterface $receivedAnswers): static{$this->receivedAnswers = $receivedAnswers;return $this;}}