src/Entity/OficinaErp.php line 14
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use JMS\Serializer\Annotation as JMS;
- /**
- * OficinaErp
- *
- * @ORM\Table()
- * @ORM\Entity
- */
- class OficinaErp
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="codigo", type="string", length=255)
- * @JMS\Groups({"api-order"})
- */
- private $codigo;
- /**
- * @var string
- *
- * @ORM\Column(name="nombre", type="string", length=255)
- */
- private $nombre;
- public function __toString() {
- return $this->codigo;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set codigo
- *
- * @param string $codigo
- * @return OficinaErp
- */
- public function setCodigo($codigo)
- {
- $this->codigo = $codigo;
- return $this;
- }
- /**
- * Get codigo
- *
- * @return string
- */
- public function getCodigo()
- {
- return $this->codigo;
- }
- /**
- * Set nombre
- *
- * @param string $nombre
- * @return OficinaErp
- */
- public function setNombre($nombre)
- {
- $this->nombre = $nombre;
- return $this;
- }
- /**
- * Get nombre
- *
- * @return string
- */
- public function getNombre()
- {
- return $this->nombre;
- }
- }