src/Entity/Existencia.php line 13
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Existencia
- *
- * @ORM\Table()
- * @ORM\Entity
- */
- class Existencia
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="Oficina", inversedBy="existencias")
- * @ORM\JoinColumn(name="oficina", referencedColumnName="id")
- */
- protected $oficina;
- /**
- * @ORM\ManyToOne(targetEntity="Divisa")
- * @ORM\JoinColumn(name="divisa", referencedColumnName="id")
- */
- private $divisa;
- /**
- * @var string
- *
- * @ORM\Column(name="cantidad", type="string", length=255)
- */
- private $cantidad;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="dia", type="date")
- */
- private $dia;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set oficina
- *
- * @param string $oficina
- * @return Existencia
- */
- public function setOficina($oficina)
- {
- $this->oficina = $oficina;
- return $this;
- }
- /**
- * Get oficina
- *
- * @return string
- */
- public function getOficina()
- {
- return $this->oficina;
- }
- /**
- * Set divisa
- *
- * @param string $divisa
- * @return Existencia
- */
- public function setDivisa($divisa)
- {
- $this->divisa = $divisa;
- return $this;
- }
- /**
- * Get divisa
- *
- * @return string
- */
- public function getDivisa()
- {
- return $this->divisa;
- }
- /**
- * Set cantidad
- *
- * @param string $cantidad
- * @return Existencia
- */
- public function setCantidad($cantidad)
- {
- $this->cantidad = $cantidad;
- return $this;
- }
- /**
- * Get cantidad
- *
- * @return string
- */
- public function getCantidad()
- {
- return $this->cantidad;
- }
- /**
- * Set dia
- *
- * @param \DateTime $dia
- * @return Existencia
- */
- public function setDia($dia)
- {
- $this->dia = $dia;
- return $this;
- }
- /**
- * Get dia
- *
- * @return \DateTime
- */
- public function getDia()
- {
- return $this->dia;
- }
- }