<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * CatComponentes * * @ORM\Table(name="cat_componentes") * @ORM\Entity */class CatComponentes{ /** * @var int * * @ORM\Column(name="id_componente", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $idComponente; /** * @var string|null * * @ORM\Column(name="tipo", type="string", length=80, nullable=true) */ private $tipo; /** * @var string|null * * @ORM\Column(name="descripcion", type="text", length=65535, nullable=true) */ private $descripcion; public function __toString() { return $this->tipo; } /** * Get the value of idComponente * * @return int */ public function getIdComponente() { return $this->idComponente; } /** * Get the value of tipo * * @return string|null */ public function getTipo() { return $this->tipo; } /** * Set the value of tipo * * @param string|null $tipo * * @return self */ public function setTipo($tipo) { $this->tipo = $tipo; return $this; } /** * Get the value of descripcion * * @return string|null */ public function getDescripcion() { return $this->descripcion; } /** * Set the value of descripcion * * @param string|null $descripcion * * @return self */ public function setDescripcion($descripcion) { $this->descripcion = $descripcion; return $this; } // Campos del catalogo de componentes}