src/Entity/CatComponentes.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CatComponentes
  6.  *
  7.  * @ORM\Table(name="cat_componentes")
  8.  * @ORM\Entity
  9.  */
  10. class CatComponentes
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id_componente", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idComponente;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="tipo", type="string", length=80, nullable=true)
  24.      */
  25.     private $tipo;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="descripcion", type="text", length=65535, nullable=true)
  30.      */
  31.     private $descripcion;
  32.     public function __toString()
  33.     {
  34.         return $this->tipo;
  35.     }
  36.     /**
  37.      * Get the value of idComponente
  38.      *
  39.      * @return  int
  40.      */ 
  41.     public function getIdComponente()
  42.     {
  43.         return $this->idComponente;
  44.     }
  45.     /**
  46.      * Get the value of tipo
  47.      *
  48.      * @return  string|null
  49.      */ 
  50.     public function getTipo()
  51.     {
  52.         return $this->tipo;
  53.     }
  54.     /**
  55.      * Set the value of tipo
  56.      *
  57.      * @param  string|null  $tipo
  58.      *
  59.      * @return  self
  60.      */ 
  61.     public function setTipo($tipo)
  62.     {
  63.         $this->tipo $tipo;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get the value of descripcion
  68.      *
  69.      * @return  string|null
  70.      */ 
  71.     public function getDescripcion()
  72.     {
  73.         return $this->descripcion;
  74.     }
  75.     /**
  76.      * Set the value of descripcion
  77.      *
  78.      * @param  string|null  $descripcion
  79.      *
  80.      * @return  self
  81.      */ 
  82.     public function setDescripcion($descripcion)
  83.     {
  84.         $this->descripcion $descripcion;
  85.         return $this;
  86.     }
  87.     // Campos del catalogo de componentes
  88. }