src/OfficeBrain/Bundle/RequestQuoteBundle/Entity/RequestQuoteVariationQuantity.php line 15

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