src/Aviatur/GeneralBundle/Entity/OrderProductFlightEnvelope.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * OrderProduct.
  6.  *
  7.  * @ORM\Table(name="order_product_flight_envelope")
  8.  * @ORM\Entity
  9.  */
  10. class OrderProductFlightEnvelope
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="envelope", type="integer", length=4, nullable=true)
  24.      */
  25.     private $envelope 0;
  26.     /**
  27.      *
  28.      * @ORM\ManyToOne(targetEntity="OrderProduct", inversedBy="orderProductFlightEnvelope")
  29.      * @ORM\JoinColumns({
  30.      *   @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  31.      * })
  32.      */
  33.     private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null;
  34.     /**
  35.      * Constructor.
  36.      */
  37.     public function __construct()
  38.     {
  39.     }
  40.     public function __toString()
  41.     {
  42.         $return = (string) 'PN'.$this->getId();
  43.         return $return;
  44.     }
  45.     /**
  46.      * Get id.
  47.      *
  48.      * @return int
  49.      */
  50.     public function getId()
  51.     {
  52.         return $this->id;
  53.     }
  54.     /**
  55.      * Set envelope.
  56.      *
  57.      * @param string $envelope
  58.      *
  59.      * @return OrderProductFlightEnvelope
  60.      */
  61.     public function setEnvelope($envelope 0)
  62.     {
  63.         $this->envelope $envelope;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get envelope.
  68.      *
  69.      * @return string
  70.      */
  71.     public function getEnvelope()
  72.     {
  73.         return $this->envelope;
  74.     }
  75.     /**
  76.      * Set order_product.
  77.      *
  78.      * @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct
  79.      *
  80.      * @return OrderProductFlightEnvelope
  81.      */
  82.     public function setOrderproduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null)
  83.     {
  84.         $this->orderProduct $orderProduct;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get order_product.
  89.      *
  90.      * @return \Aviatur\GeneralBundle\Entity\OrderProduct
  91.      */
  92.     public function getOrderproduct()
  93.     {
  94.         return $this->orderProduct;
  95.     }
  96. }