src/Admin/Modules/OnlineService/Entity/OnlineServiceCreatorPriceListGroupItem.php line 12

  1. <?php
  2. namespace App\Admin\Modules\OnlineService\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="online_service_creator_price_list_group_item")
  7.  * @ORM\Entity
  8.  */
  9. class OnlineServiceCreatorPriceListGroupItem
  10. {
  11.     /**
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     private $id;
  17.     
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\OnlineService\Entity\OnlineServiceCreatorPriceListGroup", inversedBy="items")
  20.      * @ORM\JoinColumns({
  21.      *   @ORM\JoinColumn(name="id_online_service_generator_price_list_group", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  22.      * })
  23.      */
  24.     private $group;
  25.     /**
  26.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  27.      */
  28.     private $name;   
  29.     /**
  30.      * @ORM\Column(name="description", type="string", length=2048, nullable=true)
  31.      */
  32.     private $description;
  33.     /**
  34.      * @ORM\Column(name="price", type="decimal", precision=14, scale=2, nullable=false)
  35.      */
  36.     private $price;
  37.     
  38.     /**
  39.      * @ORM\Column(name="price_info", type="string", length=100, nullable=true)
  40.      */
  41.     private $priceInfo;
  42.     
  43.     public function __toString()
  44.     {
  45.         return $this->name;
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): self
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getPrice(): ?string
  61.     {
  62.         return $this->price;
  63.     }
  64.     public function setPrice(string $price): self
  65.     {
  66.         $this->price $price;
  67.         return $this;
  68.     }
  69.     public function getPriceInfo(): ?string
  70.     {
  71.         return $this->priceInfo;
  72.     }
  73.     public function setPriceInfo(?string $priceInfo): self
  74.     {
  75.         $this->priceInfo $priceInfo;
  76.         return $this;
  77.     }
  78.     public function getGroup(): ?OnlineServiceCreatorPriceListGroup
  79.     {
  80.         return $this->group;
  81.     }
  82.     public function setGroup(?OnlineServiceCreatorPriceListGroup $group): self
  83.     {
  84.         $this->group $group;
  85.         return $this;
  86.     }
  87.     public function getDescription(): ?string
  88.     {
  89.         return $this->description;
  90.     }
  91.     public function setDescription(?string $description): self
  92.     {
  93.         $this->description $description;
  94.         return $this;
  95.     }
  96. }