src/Entity/ReservaLinea.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ReservaLinea
  6.  *
  7.  * @ORM\Table(name="reserva_linea")
  8.  * @ORM\Entity
  9.  */
  10. class ReservaLinea
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.     /**
  22.     * @ORM\ManyToOne(targetEntity="Reserva", inversedBy="lineas", cascade={"persist"})
  23.     * @ORM\JoinColumn(name="reserva", referencedColumnName="id", nullable=true)
  24.     */
  25.     private $reserva;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="erpCode", type="string", length=255, nullable=true)
  30.      */
  31.     private $erpCode;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="Divisa")
  34.      * @ORM\JoinColumn(name="divisaOrigen", referencedColumnName="id")
  35.      */
  36.     private $divisaOrigen;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="Divisa")
  39.      * @ORM\JoinColumn(name="divisaDestino", referencedColumnName="id")
  40.      */
  41.     private $divisaDestino;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="cantidad", type="string", length=255)
  46.      */
  47.     private $cantidad;
  48.     /**
  49.      * Get id
  50.      *
  51.      * @return integer 
  52.      */
  53.     public function getId()
  54.     {
  55.         return $this->id;
  56.     }
  57.     /**
  58.      * Set reserva
  59.      *
  60.      * @param string $reserva
  61.      * @return ReservaLinea
  62.      */
  63.     public function setReserva($reserva)
  64.     {
  65.         $this->reserva $reserva;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get reserva
  70.      *
  71.      * @return string 
  72.      */
  73.     public function getReserva()
  74.     {
  75.         return $this->reserva;
  76.     }
  77.     /**
  78.      * Set divisaOrigen
  79.      *
  80.      * @param string $divisaOrigen
  81.      * @return ReservaLinea
  82.      */
  83.     public function setDivisaOrigen($divisaOrigen)
  84.     {
  85.         $this->divisaOrigen $divisaOrigen;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get divisaOrigen
  90.      *
  91.      * @return string 
  92.      */
  93.     public function getDivisaOrigen()
  94.     {
  95.         return $this->divisaOrigen;
  96.     }
  97.     /**
  98.      * Set divisaDestino
  99.      *
  100.      * @param string $divisaDestino
  101.      * @return ReservaLinea
  102.      */
  103.     public function setDivisaDestino($divisaDestino)
  104.     {
  105.         $this->divisaDestino $divisaDestino;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get divisaDestino
  110.      *
  111.      * @return string 
  112.      */
  113.     public function getDivisaDestino()
  114.     {
  115.         return $this->divisaDestino;
  116.     }
  117.     /**
  118.      * Set cantidad
  119.      *
  120.      * @param string $cantidad
  121.      * @return ReservaLinea
  122.      */
  123.     public function setCantidad($cantidad)
  124.     {
  125.         $this->cantidad $cantidad;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get cantidad
  130.      *
  131.      * @return string 
  132.      */
  133.     public function getCantidad()
  134.     {
  135.         return $this->cantidad;
  136.     }
  137.     /**
  138.      * Set erpCode
  139.      *
  140.      * @param string $erpCode
  141.      * @return ReservaLinea
  142.      */
  143.     public function setErpCode($erpCode)
  144.     {
  145.         $this->erpCode $erpCode;
  146.         return $this;
  147.     }
  148.     /**
  149.      * Get erpCode
  150.      *
  151.      * @return string 
  152.      */
  153.     public function getErpCode()
  154.     {
  155.         return $this->erpCode;
  156.     }
  157. }