src/Entity/OficinaErp.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use JMS\Serializer\Annotation as JMS;
  5. /**
  6.  * OficinaErp
  7.  *
  8.  * @ORM\Table()
  9.  * @ORM\Entity
  10.  */
  11. class OficinaErp
  12. {
  13.     /**
  14.      * @var integer
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="codigo", type="string", length=255)
  25.      * @JMS\Groups({"api-order"})
  26.      */
  27.     private $codigo;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="nombre", type="string", length=255)
  32.      */
  33.     private $nombre;
  34.     
  35.     public function __toString() {
  36.         return $this->codigo;
  37.     }
  38.     /**
  39.      * Get id
  40.      *
  41.      * @return integer 
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * Set codigo
  49.      *
  50.      * @param string $codigo
  51.      * @return OficinaErp
  52.      */
  53.     public function setCodigo($codigo)
  54.     {
  55.         $this->codigo $codigo;
  56.         return $this;
  57.     }
  58.     /**
  59.      * Get codigo
  60.      *
  61.      * @return string 
  62.      */
  63.     public function getCodigo()
  64.     {
  65.         return $this->codigo;
  66.     }
  67.     /**
  68.      * Set nombre
  69.      *
  70.      * @param string $nombre
  71.      * @return OficinaErp
  72.      */
  73.     public function setNombre($nombre)
  74.     {
  75.         $this->nombre $nombre;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get nombre
  80.      *
  81.      * @return string 
  82.      */
  83.     public function getNombre()
  84.     {
  85.         return $this->nombre;
  86.     }
  87. }