src/Entity/Stock.php line 13
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Stock
- *
- * @ORM\Table(name="stock_oficina")
- * @ORM\Entity
- */
- class Stock
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="Oficina", inversedBy="stocks", cascade={"persist"})
- * @ORM\JoinColumn(name="oficina", referencedColumnName="id", nullable=false)
- */
- private $oficina;
- /**
- * @var Divisa
- * @ORM\ManyToOne(targetEntity="Divisa", cascade={"merge"})
- * @ORM\JoinColumn(name="divisa", referencedColumnName="id", nullable=false)
- */
- private $divisa;
- /**
- * @var integer
- *
- * @ORM\Column(name="stockMaximo", type="integer", nullable=true)
- */
- private $stockMaximo;
- /**
- * @var boolean
- *
- * @ORM\Column(name="activa", type="boolean")
- */
- private $activa;
- /**
- * @var boolean
- *
- * @ORM\Column(name="compraProveedor", type="boolean")
- */
- private $compraProveedor;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set oficina
- *
- * @param integer $oficina
- * @return Stock
- */
- public function setOficina($oficina)
- {
- $this->oficina = $oficina;
- return $this;
- }
- /**
- * Get oficina
- *
- * @return integer
- */
- public function getOficina()
- {
- return $this->oficina;
- }
- /**
- * Set activa
- *
- * @param integer $activa
- * @return Stock
- */
- public function setActiva($activa)
- {
- $this->activa = $activa;
- return $this;
- }
- /**
- * Get activa
- *
- * @return integer
- */
- public function getActiva()
- {
- return $this->activa;
- }
- /**
- * Set divisa
- *
- * @param integer $divisa
- * @return Stock
- */
- public function setDivisa($divisa)
- {
- $this->divisa = $divisa;
- return $this;
- }
- /**
- * Get divisa
- *
- * @return Divisa
- */
- public function getDivisa()
- {
- return $this->divisa;
- }
- /**
- * Set stockMaximo
- *
- * @param integer $stockMaximo
- * @return Stock
- */
- public function setStockMaximo($stockMaximo)
- {
- $this->stockMaximo = $stockMaximo;
- return $this;
- }
- /**
- * Get stockMaximo
- *
- * @return integer
- */
- public function getStockMaximo()
- {
- return $this->stockMaximo;
- }
- /**
- * Set compraProveedor
- *
- * @param integer $compraProveedor
- * @return Stock
- */
- public function setCompraProveedor($compraProveedor)
- {
- $this->compraProveedor = $compraProveedor;
- return $this;
- }
- /**
- * Get compraProveedor
- *
- * @return bool
- */
- public function getCompraProveedor()
- {
- return $this->compraProveedor;
- }
- }