src/Entity/Existencia.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Existencia
  6.  *
  7.  * @ORM\Table()
  8.  * @ORM\Entity
  9.  */
  10. class Existencia
  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.     * @ORM\ManyToOne(targetEntity="Oficina", inversedBy="existencias")
  22.     * @ORM\JoinColumn(name="oficina", referencedColumnName="id")
  23.     */
  24.     protected $oficina;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="Divisa")
  27.      * @ORM\JoinColumn(name="divisa", referencedColumnName="id")
  28.      */
  29.     private $divisa;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="cantidad", type="string", length=255)
  34.      */
  35.     private $cantidad;
  36.     /**
  37.      * @var \DateTime
  38.      *
  39.      * @ORM\Column(name="dia", type="date")
  40.      */
  41.     private $dia;
  42.     /**
  43.      * Get id
  44.      *
  45.      * @return integer 
  46.      */
  47.     public function getId()
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * Set oficina
  53.      *
  54.      * @param string $oficina
  55.      * @return Existencia
  56.      */
  57.     public function setOficina($oficina)
  58.     {
  59.         $this->oficina $oficina;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get oficina
  64.      *
  65.      * @return string 
  66.      */
  67.     public function getOficina()
  68.     {
  69.         return $this->oficina;
  70.     }
  71.     /**
  72.      * Set divisa
  73.      *
  74.      * @param string $divisa
  75.      * @return Existencia
  76.      */
  77.     public function setDivisa($divisa)
  78.     {
  79.         $this->divisa $divisa;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get divisa
  84.      *
  85.      * @return string 
  86.      */
  87.     public function getDivisa()
  88.     {
  89.         return $this->divisa;
  90.     }
  91.     /**
  92.      * Set cantidad
  93.      *
  94.      * @param string $cantidad
  95.      * @return Existencia
  96.      */
  97.     public function setCantidad($cantidad)
  98.     {
  99.         $this->cantidad $cantidad;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get cantidad
  104.      *
  105.      * @return string 
  106.      */
  107.     public function getCantidad()
  108.     {
  109.         return $this->cantidad;
  110.     }
  111.     /**
  112.      * Set dia
  113.      *
  114.      * @param \DateTime $dia
  115.      * @return Existencia
  116.      */
  117.     public function setDia($dia)
  118.     {
  119.         $this->dia $dia;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get dia
  124.      *
  125.      * @return \DateTime 
  126.      */
  127.     public function getDia()
  128.     {
  129.         return $this->dia;
  130.     }
  131. }