src/Entity/PackagePrice.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\EntityRepo\PackagePriceRepo")
  6.  * @ORM\Table(name="package_price")
  7.  */
  8. class PackagePrice
  9. {
  10.     /**
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */ 
  15.     protected $priceId=0;
  16.     /**
  17.      * @ORM\Column(type="float", nullable=true)
  18.      */    
  19.     protected $nettoValue
  20.     /**
  21.      * @ORM\Column(type="float", nullable=true)
  22.      */
  23.     protected $bruttoValue;    
  24.     
  25.     /**
  26.      * @ORM\Column(type="string", length=100, nullable=true)
  27.      */
  28.     protected $priceMode 'netto';  
  29.     
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     protected $priceLevelId=0;    
  34.     
  35.     /**
  36.      * @ORM\Column(type="integer")
  37.      */
  38.     protected $productId=0;
  39.     public function getPriceId(): ?int
  40.     {
  41.         return $this->priceId;
  42.     }
  43.     public function getNettoValue(): ?float
  44.     {
  45.         return $this->nettoValue;
  46.     }
  47.     public function setNettoValue(?float $nettoValue): static
  48.     {
  49.         $this->nettoValue $nettoValue;
  50.         return $this;
  51.     }
  52.     public function getBruttoValue(): ?float
  53.     {
  54.         return $this->bruttoValue;
  55.     }
  56.     public function setBruttoValue(?float $bruttoValue): static
  57.     {
  58.         $this->bruttoValue $bruttoValue;
  59.         return $this;
  60.     }
  61.     public function getPriceMode(): ?string
  62.     {
  63.         return $this->priceMode;
  64.     }
  65.     public function setPriceMode(?string $priceMode): static
  66.     {
  67.         $this->priceMode $priceMode;
  68.         return $this;
  69.     }
  70.     public function getPriceLevelId(): ?int
  71.     {
  72.         return $this->priceLevelId;
  73.     }
  74.     public function setPriceLevelId(int $priceLevelId): static
  75.     {
  76.         $this->priceLevelId $priceLevelId;
  77.         return $this;
  78.     }
  79.     public function getProductId(): ?int
  80.     {
  81.         return $this->productId;
  82.     }
  83.     public function setProductId(int $productId): static
  84.     {
  85.         $this->productId $productId;
  86.         return $this;
  87.     }   
  88. }