src/OfficeBrain/Bundle/OrderBundle/Entity/OrderItemLine.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\OrderBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * OrderItemLine
  7.  *
  8.  * @ORM\Table(name="tbl_order_item_line", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLineRepository")
  10.  */
  11. class OrderItemLine
  12. {
  13.    /**
  14.      * @var integer
  15.      *
  16.      * @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="OrderMaster", inversedBy="orderItemLine")
  23.      * @ORM\JoinColumn(name="order_master_id", referencedColumnName="id")
  24.      */
  25.     private $orderMasterId;
  26.     /**
  27.      * @var integer
  28.      *
  29.      * @ORM\Column(name="product_id",type="bigint", length=20, nullable=true, options={"unsigned"=true})
  30.      */
  31.     private $productId;
  32.     
  33.     /**
  34.      * @var boolean
  35.      *
  36.      * @ORM\Column(name="is_paper_proof", type="boolean", nullable=true, options={"default"=false})
  37.      */
  38.     private $isPaperProof false;
  39.     
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="email_for_paper_proof", type="string", length=255, nullable=true)
  44.      */
  45.     private $emailForPaperProof;
  46.     /**
  47.      * @var boolean
  48.      *
  49.      * @ORM\Column(name="is_product_proof", type="boolean", nullable=true, options={"default"=false})
  50.      */
  51.     private $isProductProof false;
  52.     /**
  53.      * @var boolean
  54.      *
  55.      * @ORM\Column(name="is_fax_proof", type="boolean",options={"default" = false}, nullable=true)
  56.      */
  57.     private $isFaxProof false;
  58.     
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(name="faxnumber_for_fax_proof", type="string", length=255, nullable=true)
  63.      */
  64.     private $faxnumberForPaperProof;
  65.     
  66.     /**
  67.      * @var integer
  68.      *
  69.      * @ORM\Column(name="supplier_id",type="bigint", length=20, nullable=true, options={"unsigned"=true})
  70.      */
  71.     private $supplierId;
  72.     
  73.     /**
  74.      * @var integer
  75.      *
  76.      * @ORM\Column(name="price_decimals",type="bigint", length=9, options={"default" = -1})
  77.      */
  78.     private $priceDecimals;
  79.     
  80.     /**
  81.      * @var integer
  82.      *
  83.      * @ORM\Column(name="currency_id",type="bigint", length=20, nullable=true, options={"unsigned"=true})
  84.      */
  85.     private $currencyId;
  86.     
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="currency_name", type="string", length=255, nullable=true)
  91.      */
  92.     private $currencyName;
  93.     
  94.     /**
  95.      * @var string
  96.      *
  97.      * @ORM\Column(name="currency", type="string", length=255, nullable=true)
  98.      */
  99.     private $currency;
  100.     
  101.     /**
  102.      * @var string
  103.      *
  104.      * @ORM\Column(name="currency_symbol", type="string", length=255, nullable=true)
  105.      */
  106.     private $currencySymbol;
  107.     
  108.     /**
  109.      * @var string
  110.      *
  111.      * @ORM\Column(name="product_sku", type="string", length=255, nullable=true)
  112.      */
  113.     private $productSku;
  114.     
  115.     /**
  116.      * @var string
  117.      *
  118.      * @ORM\Column(name="product_slug", type="string", length=255, nullable=true)
  119.      */
  120.     private $productSlug;
  121.     
  122.     /**
  123.      * @var string
  124.      *
  125.      * @ORM\Column(name="product_thumb_image", type="string", length=255, nullable=true)
  126.      */
  127.     private $productThumbImage;
  128.     
  129.     /**
  130.      * @var string
  131.      *
  132.      * @ORM\Column(name="product_image", type="string", length=255, nullable=true)
  133.      */
  134.     private $productImage;
  135.     
  136.     /**
  137.      * @var string
  138.      *
  139.      * @ORM\Column(name="product_note", type="string", length=255, nullable=true)
  140.      */
  141.     private $productNote;
  142.     
  143.     /**
  144.      * @var boolean
  145.      *
  146.      * @ORM\Column(name="is_send_review_link", type="boolean", nullable=true, options={"default"=false})
  147.      */
  148.     private $isSendReviewLink false;
  149.     
  150.     /**
  151.      * @var boolean
  152.      *
  153.      * @ORM\Column(name="is_complete", type="boolean", nullable=true, options={"default"=false})
  154.      */
  155.     private $isComplete;
  156.     
  157.     /**
  158.      * @var string
  159.      *
  160.      * @ORM\Column(name="item_line_amount", type="decimal",precision=11, scale=2, options={"default" = 0.00})
  161.      */
  162.     private $itemLineAmount '0.00';
  163.     
  164.     /**
  165.      * @var string
  166.      *
  167.      * @ORM\Column(name="unit_price", type="decimal",precision=11, scale=2, options={"default" = 0.00})
  168.      */
  169.     private $unitPrice '0.00';
  170.     
  171.     /**
  172.      * @var string
  173.      *
  174.      * @ORM\Column(name="item_qty_total", type="bigint", length=20, nullable=true)
  175.      */
  176.     private $itemQtyTotal=0;
  177.     
  178.     /**
  179.      * @var boolean
  180.      *
  181.      * @ORM\Column(name="order_type", type="string", length=255, nullable=true)
  182.      */
  183.     private $orderType;
  184.     
  185.     /**
  186.      * @var boolean
  187.      *
  188.      * @ORM\Column(name="is_feedback_posted", type="boolean", nullable=true, options={"default"=false})
  189.      */
  190.     private $isFeedbackPosted;
  191.     
  192.     /**
  193.      * @ORM\OneToMany(targetEntity="OrderProduct", mappedBy="orderItemLineId")
  194.      */
  195.     private $orderProduct;
  196.     
  197.     /**
  198.      * @ORM\OneToMany(targetEntity="OrderProductCharges", mappedBy="orderItemLineId")
  199.      */
  200.     private $orderProductCharges;
  201.     
  202.     /**
  203.      * @ORM\OneToMany(targetEntity="OrderProductImprintArea", mappedBy="orderItemLineId")
  204.      */
  205.     private $orderProductImprintArea;
  206.     
  207.     public function __construct() {
  208.         $this->orderProduct = new ArrayCollection();
  209.         $this->orderProductCharges = new ArrayCollection();
  210.         $this->orderProductImprintArea = new ArrayCollection();
  211.     }
  212.     
  213.    
  214.     /**
  215.      * Get id
  216.      *
  217.      * @return integer 
  218.      */
  219.     public function getId()
  220.     {
  221.         return $this->id;
  222.     }
  223.     /**
  224.      * Set productId
  225.      *
  226.      * @param integer $productId
  227.      * @return OrderItemLine
  228.      */
  229.     public function setProductId($productId)
  230.     {
  231.         $this->productId $productId;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Get productId
  236.      *
  237.      * @return integer 
  238.      */
  239.     public function getProductId()
  240.     {
  241.         return $this->productId;
  242.     }
  243.     /**
  244.      * Set isPaperProof
  245.      *
  246.      * @param boolean $isPaperProof
  247.      * @return OrderItemLine
  248.      */
  249.     public function setIsPaperProof($isPaperProof)
  250.     {
  251.         $this->isPaperProof $isPaperProof;
  252.         return $this;
  253.     }
  254.     /**
  255.      * Get isPaperProof
  256.      *
  257.      * @return boolean 
  258.      */
  259.     public function getIsPaperProof()
  260.     {
  261.         return $this->isPaperProof;
  262.     }
  263.     /**
  264.      * Set emailForPaperProof
  265.      *
  266.      * @param string $emailForPaperProof
  267.      * @return OrderItemLine
  268.      */
  269.     public function setEmailForPaperProof($emailForPaperProof)
  270.     {
  271.         $this->emailForPaperProof $emailForPaperProof;
  272.         return $this;
  273.     }
  274.     /**
  275.      * Get emailForPaperProof
  276.      *
  277.      * @return string 
  278.      */
  279.     public function getEmailForPaperProof()
  280.     {
  281.         return $this->emailForPaperProof;
  282.     }
  283.     /**
  284.      * Set isProductProof
  285.      *
  286.      * @param boolean $isProductProof
  287.      * @return OrderItemLine
  288.      */
  289.     public function setIsProductProof($isProductProof)
  290.     {
  291.         $this->isProductProof $isProductProof;
  292.         return $this;
  293.     }
  294.     /**
  295.      * Get isProductProof
  296.      *
  297.      * @return boolean 
  298.      */
  299.     public function getIsProductProof()
  300.     {
  301.         return $this->isProductProof;
  302.     }
  303.     /**
  304.      * Set supplierId
  305.      *
  306.      * @param integer $supplierId
  307.      * @return OrderItemLine
  308.      */
  309.     public function setSupplierId($supplierId)
  310.     {
  311.         $this->supplierId $supplierId;
  312.         return $this;
  313.     }
  314.     /**
  315.      * Get supplierId
  316.      *
  317.      * @return integer 
  318.      */
  319.     public function getSupplierId()
  320.     {
  321.         return $this->supplierId;
  322.     }
  323.     
  324.     /**
  325.      * Get priceDecimals
  326.      *
  327.      * @return integer
  328.      */
  329.     public function getPriceDecimals()
  330.     {
  331.         return $this->priceDecimals;
  332.     }
  333.     
  334.     /**
  335.      * Set priceDecimals
  336.      *
  337.      * @param integer $priceDecimals
  338.      * @return OrderItemLine
  339.      */
  340.     public function setPriceDecimals($priceDecimals)
  341.     {
  342.         $this->priceDecimals $priceDecimals;
  343.     
  344.         return $this;
  345.     }
  346.     /**
  347.      * Set currencyId
  348.      *
  349.      * @param integer $currencyId
  350.      * @return OrderItemLine
  351.      */
  352.     public function setCurrencyId($currencyId)
  353.     {
  354.         $this->currencyId $currencyId;
  355.         return $this;
  356.     }
  357.     /**
  358.      * Get currencyId
  359.      *
  360.      * @return integer 
  361.      */
  362.     public function getCurrencyId()
  363.     {
  364.         return $this->currencyId;
  365.     }
  366.     /**
  367.      * Set currencyName
  368.      *
  369.      * @param string $currencyName
  370.      * @return OrderItemLine
  371.      */
  372.     public function setCurrencyName($currencyName)
  373.     {
  374.         $this->currencyName $currencyName;
  375.         return $this;
  376.     }
  377.     /**
  378.      * Get currencyName
  379.      *
  380.      * @return string 
  381.      */
  382.     public function getCurrencyName()
  383.     {
  384.         return $this->currencyName;
  385.     }
  386.     /**
  387.      * Set currency
  388.      *
  389.      * @param string $currency
  390.      * @return OrderItemLine
  391.      */
  392.     public function setCurrency($currency)
  393.     {
  394.         $this->currency $currency;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get currency
  399.      *
  400.      * @return string 
  401.      */
  402.     public function getCurrency()
  403.     {
  404.         return $this->currency;
  405.     }
  406.     /**
  407.      * Set currencySymbol
  408.      *
  409.      * @param string $currencySymbol
  410.      * @return OrderItemLine
  411.      */
  412.     public function setCurrencySymbol($currencySymbol)
  413.     {
  414.         $this->currencySymbol $currencySymbol;
  415.         return $this;
  416.     }
  417.     /**
  418.      * Get currencySymbol
  419.      *
  420.      * @return string 
  421.      */
  422.     public function getCurrencySymbol()
  423.     {
  424.         return $this->currencySymbol;
  425.     }
  426.     /**
  427.      * Set productSku
  428.      *
  429.      * @param string $productSku
  430.      * @return OrderItemLine
  431.      */
  432.     public function setProductSku($productSku)
  433.     {
  434.         $this->productSku $productSku;
  435.         return $this;
  436.     }
  437.     /**
  438.      * Get productSku
  439.      *
  440.      * @return string 
  441.      */
  442.     public function getProductSku()
  443.     {
  444.         return $this->productSku;
  445.     }
  446.     /**
  447.      * Set productSlug
  448.      *
  449.      * @param string $productSlug
  450.      * @return OrderItemLine
  451.      */
  452.     public function setProductSlug($productSlug)
  453.     {
  454.         $this->productSlug $productSlug;
  455.         return $this;
  456.     }
  457.     /**
  458.      * Get productSlug
  459.      *
  460.      * @return string 
  461.      */
  462.     public function getProductSlug()
  463.     {
  464.         return $this->productSlug;
  465.     }
  466.     /**
  467.      * Set productThumbImage
  468.      *
  469.      * @param string $productThumbImage
  470.      * @return OrderItemLine
  471.      */
  472.     public function setProductThumbImage($productThumbImage)
  473.     {
  474.         $this->productThumbImage $productThumbImage;
  475.         return $this;
  476.     }
  477.     /**
  478.      * Get productThumbImage
  479.      *
  480.      * @return string 
  481.      */
  482.     public function getProductThumbImage()
  483.     {
  484.         return $this->productThumbImage;
  485.     }
  486.     /**
  487.      * Set productImage
  488.      *
  489.      * @param string $productImage
  490.      * @return OrderItemLine
  491.      */
  492.     public function setProductImage($productImage)
  493.     {
  494.         $this->productImage $productImage;
  495.         return $this;
  496.     }
  497.     /**
  498.      * Get productImage
  499.      *
  500.      * @return string 
  501.      */
  502.     public function getProductImage()
  503.     {
  504.         return $this->productImage;
  505.     }
  506.     /**
  507.      * Set productNote
  508.      *
  509.      * @param string $productNote
  510.      * @return OrderItemLine
  511.      */
  512.     public function setProductNote($productNote)
  513.     {
  514.         $this->productNote $productNote;
  515.         return $this;
  516.     }
  517.     /**
  518.      * Get productNote
  519.      *
  520.      * @return string 
  521.      */
  522.     public function getProductNote()
  523.     {
  524.         return $this->productNote;
  525.     }
  526.     /**
  527.      * Set isSendReviewLink
  528.      *
  529.      * @param boolean $isSendReviewLink
  530.      * @return OrderItemLine
  531.      */
  532.     public function setIsSendReviewLink($isSendReviewLink)
  533.     {
  534.         $this->isSendReviewLink $isSendReviewLink;
  535.         return $this;
  536.     }
  537.     /**
  538.      * Get isSendReviewLink
  539.      *
  540.      * @return boolean 
  541.      */
  542.     public function getIsSendReviewLink()
  543.     {
  544.         return $this->isSendReviewLink;
  545.     }
  546.     /**
  547.      * Set isComplete
  548.      *
  549.      * @param boolean $isComplete
  550.      * @return OrderItemLine
  551.      */
  552.     public function setIsComplete($isComplete)
  553.     {
  554.         $this->isComplete $isComplete;
  555.         return $this;
  556.     }
  557.     /**
  558.      * Get isComplete
  559.      *
  560.      * @return boolean 
  561.      */
  562.     public function getIsComplete()
  563.     {
  564.         return $this->isComplete;
  565.     }
  566.     /**
  567.      * Set orderType
  568.      *
  569.      * @param string $orderType
  570.      * @return OrderItemLine
  571.      */
  572.     public function setOrderType($orderType)
  573.     {
  574.         $this->orderType $orderType;
  575.         return $this;
  576.     }
  577.     /**
  578.      * Get orderType
  579.      *
  580.      * @return string 
  581.      */
  582.     public function getOrderType()
  583.     {
  584.         return $this->orderType;
  585.     }
  586.     /**
  587.      * Set isFeedbackPosted
  588.      *
  589.      * @param boolean $isFeedbackPosted
  590.      * @return OrderItemLine
  591.      */
  592.     public function setIsFeedbackPosted($isFeedbackPosted)
  593.     {
  594.         $this->isFeedbackPosted $isFeedbackPosted;
  595.         return $this;
  596.     }
  597.     /**
  598.      * Get isFeedbackPosted
  599.      *
  600.      * @return boolean 
  601.      */
  602.     public function getIsFeedbackPosted()
  603.     {
  604.         return $this->isFeedbackPosted;
  605.     }
  606.     /**
  607.      * Set orderMasterId
  608.      *
  609.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster $orderMasterId
  610.      * @return OrderItemLine
  611.      */
  612.     public function setOrderMasterId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster $orderMasterId null)
  613.     {
  614.         $this->orderMasterId $orderMasterId;
  615.         return $this;
  616.     }
  617.     /**
  618.      * Get orderMasterId
  619.      *
  620.      * @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster 
  621.      */
  622.     public function getOrderMasterId()
  623.     {
  624.         return $this->orderMasterId;
  625.     }
  626.     /**
  627.      * Add orderProduct
  628.      *
  629.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct
  630.      * @return OrderItemLine
  631.      */
  632.     public function addOrderProduct(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct)
  633.     {
  634.         $this->orderProduct[] = $orderProduct;
  635.         return $this;
  636.     }
  637.     /**
  638.      * Remove orderProduct
  639.      *
  640.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct
  641.      */
  642.     public function removeOrderProduct(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct)
  643.     {
  644.         $this->orderProduct->removeElement($orderProduct);
  645.     }
  646.     /**
  647.      * Get orderProduct
  648.      *
  649.      * @return \Doctrine\Common\Collections\Collection 
  650.      */
  651.     public function getOrderProduct()
  652.     {
  653.         return $this->orderProduct;
  654.     }
  655.     /**
  656.      * Add orderProductCharges
  657.      *
  658.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges
  659.      * @return OrderItemLine
  660.      */
  661.     public function addOrderProductCharge(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges)
  662.     {
  663.         $this->orderProductCharges[] = $orderProductCharges;
  664.         return $this;
  665.     }
  666.     /**
  667.      * Remove orderProductCharges
  668.      *
  669.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges
  670.      */
  671.     public function removeOrderProductCharge(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges)
  672.     {
  673.         $this->orderProductCharges->removeElement($orderProductCharges);
  674.     }
  675.     /**
  676.      * Get orderProductCharges
  677.      *
  678.      * @return \Doctrine\Common\Collections\Collection 
  679.      */
  680.     public function getOrderProductCharges()
  681.     {
  682.         return $this->orderProductCharges;
  683.     }
  684.     /**
  685.      * Add orderProductImprintArea
  686.      *
  687.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea
  688.      * @return OrderItemLine
  689.      */
  690.     public function addOrderProductImprintArea(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea)
  691.     {
  692.         $this->orderProductImprintArea[] = $orderProductImprintArea;
  693.         return $this;
  694.     }
  695.     /**
  696.      * Remove orderProductImprintArea
  697.      *
  698.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea
  699.      */
  700.     public function removeOrderProductImprintArea(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea)
  701.     {
  702.         $this->orderProductImprintArea->removeElement($orderProductImprintArea);
  703.     }
  704.     /**
  705.      * Get orderProductImprintArea
  706.      *
  707.      * @return \Doctrine\Common\Collections\Collection 
  708.      */
  709.     public function getOrderProductImprintArea()
  710.     {
  711.         return $this->orderProductImprintArea;
  712.     }
  713.     /**
  714.      * Set isFaxProof
  715.      *
  716.      * @param boolean $isFaxProof
  717.      *
  718.      * @return OrderItemLine
  719.      */
  720.     public function setIsFaxProof($isFaxProof)
  721.     {
  722.         $this->isFaxProof $isFaxProof;
  723.         return $this;
  724.     }
  725.     /**
  726.      * Get isFaxProof
  727.      *
  728.      * @return boolean
  729.      */
  730.     public function getIsFaxProof()
  731.     {
  732.         return $this->isFaxProof;
  733.     }
  734.     /**
  735.      * Set faxnumberForPaperProof
  736.      *
  737.      * @param string $faxnumberForPaperProof
  738.      *
  739.      * @return OrderItemLine
  740.      */
  741.     public function setFaxnumberForPaperProof($faxnumberForPaperProof)
  742.     {
  743.         $this->faxnumberForPaperProof $faxnumberForPaperProof;
  744.         return $this;
  745.     }
  746.     /**
  747.      * Get faxnumberForPaperProof
  748.      *
  749.      * @return string
  750.      */
  751.     public function getFaxnumberForPaperProof()
  752.     {
  753.         return $this->faxnumberForPaperProof;
  754.     }
  755.     /**
  756.      * Set itemLineAmount
  757.      *
  758.      * @param string $itemLineAmount
  759.      *
  760.      * @return OrderItemLine
  761.      */
  762.     public function setItemLineAmount($itemLineAmount)
  763.     {
  764.         $this->itemLineAmount $itemLineAmount;
  765.         return $this;
  766.     }
  767.     /**
  768.      * Get itemLineAmount
  769.      *
  770.      * @return string
  771.      */
  772.     public function getItemLineAmount()
  773.     {
  774.         return $this->itemLineAmount;
  775.     }
  776.     /**
  777.      * Set unitPrice
  778.      *
  779.      * @param string $unitPrice
  780.      *
  781.      * @return OrderItemLine
  782.      */
  783.     public function setUnitPrice($unitPrice)
  784.     {
  785.         $this->unitPrice $unitPrice;
  786.         return $this;
  787.     }
  788.     /**
  789.      * Get unitPrice
  790.      *
  791.      * @return string
  792.      */
  793.     public function getUnitPrice()
  794.     {
  795.         return $this->unitPrice;
  796.     }
  797.     /**
  798.      * Set itemQtyTotal
  799.      *
  800.      * @param integer $itemQtyTotal
  801.      *
  802.      * @return OrderItemLine
  803.      */
  804.     public function setItemQtyTotal($itemQtyTotal)
  805.     {
  806.         $this->itemQtyTotal $itemQtyTotal;
  807.         return $this;
  808.     }
  809.     /**
  810.      * Get itemQtyTotal
  811.      *
  812.      * @return integer
  813.      */
  814.     public function getItemQtyTotal()
  815.     {
  816.         return $this->itemQtyTotal;
  817.     }
  818. }