src/OfficeBrain/Bundle/OrderBundle/Entity/OrderProductImprintArea.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.  * OrderProductImprintArea
  7.  *
  8.  * @ORM\Table(name="tbl_order_product_imprint_area", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintAreaRepository")
  10.  */
  11. class OrderProductImprintArea
  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="OrderItemLine", inversedBy="orderProductImprintArea")
  23.      * @ORM\JoinColumn(name="order_item_line_id", referencedColumnName="id")
  24.      */
  25.     private $orderItemLineId;
  26.     /**
  27.      * @var integer
  28.      *
  29.      * @ORM\Column(name="imprint_area_id",type="bigint", length=20 , options={"unsigned"=true})
  30.      */
  31.     private $imprintAreaId;
  32.     /**
  33.      * @var integer
  34.      *
  35.      * @ORM\Column(name="imprint_area_method_id", type="bigint", length=20 , options={"unsigned"=true})
  36.      */
  37.     private $imprintAreaMethodId;
  38.     /**
  39.      * @var integer
  40.      *
  41.      * @ORM\Column(name="imprint_area_noof_color", type="bigint", length=20 , options={"unsigned"=true},nullable=true)
  42.      */
  43.     private $imprintAreaNoofColor;
  44.     
  45.     /**
  46.      * @ORM\OneToMany(targetEntity="OrderProductImprintColor", mappedBy="imprintAreaId")
  47.      */
  48.     private $orderProductImprintColor;
  49.     
  50.     /**
  51.      * @ORM\OneToMany(targetEntity="OrderProductImprintTextArtWork", mappedBy="imprintAreaId")
  52.      */
  53.     private $orderProductImprintTextArtWork;
  54.     
  55.     public function __construct() {
  56.         $this->orderProductImprintColor = new ArrayCollection();
  57.         $this->orderProductImprintTextArtWork = new ArrayCollection();
  58.     }
  59.     /**
  60.      * Get id
  61.      *
  62.      * @return integer 
  63.      */
  64.     public function getId()
  65.     {
  66.         return $this->id;
  67.     }
  68.     /**
  69.      * Set imprintAreaId
  70.      *
  71.      * @param integer $imprintAreaId
  72.      * @return OrderProductImprintArea
  73.      */
  74.     public function setImprintAreaId($imprintAreaId)
  75.     {
  76.         $this->imprintAreaId $imprintAreaId;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get imprintAreaId
  81.      *
  82.      * @return integer 
  83.      */
  84.     public function getImprintAreaId()
  85.     {
  86.         return $this->imprintAreaId;
  87.     }
  88.     /**
  89.      * Set imprintAreaMethodId
  90.      *
  91.      * @param integer $imprintAreaMethodId
  92.      * @return OrderProductImprintArea
  93.      */
  94.     public function setImprintAreaMethodId($imprintAreaMethodId)
  95.     {
  96.         $this->imprintAreaMethodId $imprintAreaMethodId;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get imprintAreaMethodId
  101.      *
  102.      * @return integer 
  103.      */
  104.     public function getImprintAreaMethodId()
  105.     {
  106.         return $this->imprintAreaMethodId;
  107.     }
  108.     /**
  109.      * Set imprintAreaNoofColor
  110.      *
  111.      * @param integer $imprintAreaNoofColor
  112.      * @return OrderProductImprintArea
  113.      */
  114.     public function setImprintAreaNoofColor($imprintAreaNoofColor)
  115.     {
  116.         $this->imprintAreaNoofColor $imprintAreaNoofColor;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get imprintAreaNoofColor
  121.      *
  122.      * @return integer 
  123.      */
  124.     public function getImprintAreaNoofColor()
  125.     {
  126.         return $this->imprintAreaNoofColor;
  127.     }
  128.     /**
  129.      * Set orderItemLineId
  130.      *
  131.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine $orderItemLineId
  132.      * @return OrderProductImprintArea
  133.      */
  134.     public function setOrderItemLineId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine $orderItemLineId null)
  135.     {
  136.         $this->orderItemLineId $orderItemLineId;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get orderItemLineId
  141.      *
  142.      * @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine 
  143.      */
  144.     public function getOrderItemLineId()
  145.     {
  146.         return $this->orderItemLineId;
  147.     }
  148.     /**
  149.      * Add orderProductImprintColor
  150.      *
  151.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintColor $orderProductImprintColor
  152.      * @return OrderProductImprintArea
  153.      */
  154.     public function addOrderProductImprintColor(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintColor $orderProductImprintColor)
  155.     {
  156.         $this->orderProductImprintColor[] = $orderProductImprintColor;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Remove orderProductImprintColor
  161.      *
  162.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintColor $orderProductImprintColor
  163.      */
  164.     public function removeOrderProductImprintColor(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintColor $orderProductImprintColor)
  165.     {
  166.         $this->orderProductImprintColor->removeElement($orderProductImprintColor);
  167.     }
  168.     /**
  169.      * Get orderProductImprintColor
  170.      *
  171.      * @return \Doctrine\Common\Collections\Collection 
  172.      */
  173.     public function getOrderProductImprintColor()
  174.     {
  175.         return $this->orderProductImprintColor;
  176.     }
  177.     /**
  178.      * Add orderProductImprintTextArtWork
  179.      *
  180.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintTextArtWork $orderProductImprintTextArtWork
  181.      * @return OrderProductImprintArea
  182.      */
  183.     public function addOrderProductImprintTextArtWork(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintTextArtWork $orderProductImprintTextArtWork)
  184.     {
  185.         $this->orderProductImprintTextArtWork[] = $orderProductImprintTextArtWork;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Remove orderProductImprintTextArtWork
  190.      *
  191.      * @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintTextArtWork $orderProductImprintTextArtWork
  192.      */
  193.     public function removeOrderProductImprintTextArtWork(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintTextArtWork $orderProductImprintTextArtWork)
  194.     {
  195.         $this->orderProductImprintTextArtWork->removeElement($orderProductImprintTextArtWork);
  196.     }
  197.     /**
  198.      * Get orderProductImprintTextArtWork
  199.      *
  200.      * @return \Doctrine\Common\Collections\Collection 
  201.      */
  202.     public function getOrderProductImprintTextArtWork()
  203.     {
  204.         return $this->orderProductImprintTextArtWork;
  205.     }
  206. }