src/Entity/CRM/ProductServices.php line 11
<?phpnamespace App\Entity\CRM;use App\Repository\ProductServicesRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ProductServicesRepository::class)]class ProductServices{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column]private bool $isActive = true;#[ORM\Column]private float $administrationFee = 0;#[ORM\ManyToMany(targetEntity: Product::class, mappedBy: 'productServices')]private Collection $products;#[ORM\OneToMany(mappedBy: 'productService', targetEntity: OrderProduct::class)]private Collection $orderProducts;#[ORM\Column]private bool $implementation = false;public function __construct(){$this->products = new ArrayCollection();$this->orderProducts = 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;}public function isIsActive(): bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}public function getAdministrationFee(): float{return $this->administrationFee;}public function setAdministrationFee(float $administrationFee): static{$this->administrationFee = $administrationFee;return $this;}/*** @return Collection<int, Product>*/public function getProducts(): Collection{return $this->products;}public function addProduct(Product $product): static{if (!$this->products->contains($product)) {$this->products->add($product);$product->addProductService($this);}return $this;}public function removeProduct(Product $product): static{if ($this->products->removeElement($product)) {$product->removeProductService($this);}return $this;}/*** @return Collection<int, OrderProduct>*/public function getOrderProducts(): Collection{return $this->orderProducts;}public function addOrderProduct(OrderProduct $orderProduct): static{if (!$this->orderProducts->contains($orderProduct)) {$this->orderProducts->add($orderProduct);$orderProduct->setProductService($this);}return $this;}public function removeOrderProduct(OrderProduct $orderProduct): static{if ($this->orderProducts->removeElement($orderProduct)) {if ($orderProduct->getProductService() === $this) {$orderProduct->setProductService(null);}}return $this;}public function isImplementation(): bool{return $this->implementation;}public function setImplementation(bool $implementation): void{$this->implementation = $implementation;}}