src/OfficeBrain/Bundle/OrderBundle/Entity/OrderVariationQuantity.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\OrderBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * OrderVariationQuantity
  6.  *
  7.  * @ORM\Table(name="tbl_order_variation_quantity", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
  8.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationQuantityRepository")
  9.  */
  10. class OrderVariationQuantity
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.      /**
  21.      * @ORM\ManyToOne(targetEntity="OrderVariationMapping", inversedBy="orderVariationQuantity")
  22.      * @ORM\JoinColumn(name="variation_mapping_id", referencedColumnName="id")
  23.      */
  24.     private $variationMappingId;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="quantity", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  29.      */
  30.     private $quantity;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="unit_price", type="bigint", length=20, nullable=true, options={"unsigned"=true})
  35.      */
  36.     private $unitPrice;
  37.     /**
  38.      * Get id
  39.      *
  40.      * @return integer 
  41.      */
  42.     public function getId()
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * Set quantity
  48.      *
  49.      * @param integer $quantity
  50.      * @return OrderVariationQuantity
  51.      */
  52.     public function setQuantity($quantity)
  53.     {
  54.         $this->quantity $quantity;
  55.         return $this;
  56.     }
  57.     /**
  58.      * Get quantity
  59.      *
  60.      * @return integer 
  61.      */
  62.     public function getQuantity()
  63.     {
  64.         return $this->quantity;
  65.     }
  66.     /**
  67.      * Set unitPrice
  68.      *
  69.      * @param integer $unitPrice
  70.      * @return OrderVariationQuantity
  71.      */
  72.     public function setUnitPrice($unitPrice)
  73.     {
  74.         $this->unitPrice $unitPrice;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get unitPrice
  79.      *
  80.      * @return integer 
  81.      */
  82.     public function getUnitPrice()
  83.     {
  84.         return $this->unitPrice;
  85.     }
  86.     /**
  87.      * Set variationMappingId
  88.      *
  89.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $variationMappingId
  90.      * @return OrderVariationQuantity
  91.      */
  92.     public function setVariationMappingId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping $variationMappingId null)
  93.     {
  94.         $this->variationMappingId $variationMappingId;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get variationMappingId
  99.      *
  100.      * @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderVariationMapping 
  101.      */
  102.     public function getVariationMappingId()
  103.     {
  104.         return $this->variationMappingId;
  105.     }
  106. }