src/Admin/Modules/OnlineService/Entity/OnlineServiceCreatorCategoryItem.php line 11

  1. <?php
  2. namespace App\Admin\Modules\OnlineService\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(name="online_service_creator_category_item")
  6.  * @ORM\Entity
  7.  */
  8. class OnlineServiceCreatorCategoryItem
  9. {
  10.     /**
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private $id;
  16.     
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorCategory", inversedBy="items")
  19.      * @ORM\JoinColumns({
  20.      *   @ORM\JoinColumn(name="id_online_service_creator_category", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  21.      * })
  22.      */
  23.     private $category;
  24.     
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorPriceListGroupItem")
  27.      * @ORM\JoinColumns({
  28.      *   @ORM\JoinColumn(name="id_online_service_creator_price_list_group_item", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  29.      * })
  30.      */
  31.     private $priceListItem;
  32.     
  33.     /**
  34.      * @ORM\Column(name="is_required", type="boolean", nullable=false)
  35.      */
  36.     private $isRequired;
  37.     public function __toString(): string
  38.     {
  39.         return $this->id;
  40.     }
  41.     
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getCategory(): ?OnlineServiceCreatorCategory
  47.     {
  48.         return $this->category;
  49.     }
  50.     public function setCategory(?OnlineServiceCreatorCategory $category): self
  51.     {
  52.         $this->category $category;
  53.         return $this;
  54.     }
  55.     public function getPriceListItem(): ?OnlineServiceCreatorPriceListGroupItem
  56.     {
  57.         return $this->priceListItem;
  58.     }
  59.     public function setPriceListItem(?OnlineServiceCreatorPriceListGroupItem $priceListItem): self
  60.     {
  61.         $this->priceListItem $priceListItem;
  62.         return $this;
  63.     }
  64.     public function getIsRequired(): ?bool
  65.     {
  66.         return $this->isRequired;
  67.     }
  68.     public function setIsRequired(bool $isRequired): self
  69.     {
  70.         $this->isRequired $isRequired;
  71.         return $this;
  72.     }    
  73. }