src/Admin/Modules/OnlineService/Entity/OnlineService.php line 15
<?phpnamespace App\Admin\Modules\OnlineService\Entity;use App\Admin\Modules\OfferGenerator\Entity\OfferGeneratorPriceListGroupItem;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Table(name="online_service", indexes={@ORM\Index(columns={"name"})})* @ORM\Entity(repositoryClass="App\Admin\Modules\OnlineService\Repository\OnlineServiceRepository")*/class OnlineService{/*** @ORM\Column(type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/protected $id;/*** @ORM\ManyToOne(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCategory")* @ORM\JoinColumns({* @ORM\JoinColumn(name="id_online_service_category", referencedColumnName="id", nullable=false, onDelete="RESTRICT")* })*/private $category;/*** @ORM\Column(name="name", type="string", length=255, nullable=false, options={"collation"="utf8_unicode_ci"})*/private $name;/*** @ORM\Column(name="description", type="string", length=2048, nullable=false)*/private $description;/*** @ORM\Column(name="image", type="string", length=255, nullable=true)*/private $image;/*** @ORM\Column(name="items_price", type="decimal", precision=14, scale=2, nullable=true)*/private $itemsPrice;/*** @ORM\Column(name="discount", type="float", nullable=true)*/private $discount;/*** @ORM\Column(name="price", type="decimal", precision=14, scale=2, nullable=true)*/private $price;/*** @ORM\ManyToMany(targetEntity="App\Admin\Modules\OfferGenerator\Entity\OfferGeneratorPriceListGroupItem")* @ORM\JoinTable(name="online_service_price_list_item",* joinColumns={@ORM\JoinColumn(name="id_online_service", referencedColumnName="id", onDelete="CASCADE")},* inverseJoinColumns={@ORM\JoinColumn(name="id_offer_generator_price_list_group_item", referencedColumnName="id", onDelete="CASCADE")}* )**/private $priceListItems;public function __construct(){$this->priceListItems = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(string $description): self{$this->description = $description;return $this;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): self{$this->image = $image;return $this;}public function getItemsPrice(): ?string{return $this->itemsPrice;}public function setItemsPrice(?string $itemsPrice): self{$this->itemsPrice = $itemsPrice;return $this;}public function getDiscount(): ?float{return $this->discount;}public function setDiscount(?float $discount): self{$this->discount = $discount;return $this;}public function getPrice(): ?string{return $this->price;}public function setPrice(?string $price): self{$this->price = $price;return $this;}/*** @return Collection<int, OfferGeneratorPriceListGroupItem>*/public function getPriceListItems(): Collection{return $this->priceListItems;}public function addPriceListItem(OfferGeneratorPriceListGroupItem $priceListItem): self{if (!$this->priceListItems->contains($priceListItem)) {$this->priceListItems->add($priceListItem);}return $this;}public function removePriceListItem(OfferGeneratorPriceListGroupItem $priceListItem): self{$this->priceListItems->removeElement($priceListItem);return $this;}public function getCategory(): ?OnlineServiceCategory{return $this->category;}public function setCategory(?OnlineServiceCategory $category): self{$this->category = $category;return $this;}}