src/Entity/Almacen/AplicacionArticulo.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Almacen;
  3. use App\Repository\Almacen\AplicacionArticuloRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=AplicacionArticuloRepository::class)
  7.  * @ORM\Table(name="gral_aplicacion_articulo")
  8.  */
  9. class AplicacionArticulo
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $nombre;
  21.     public function __toString(): string
  22.     {
  23.         return $this->nombre;
  24.     }
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getNombre(): ?string
  30.     {
  31.         return $this->nombre;
  32.     }
  33.     public function setNombre(string $nombre): self
  34.     {
  35.         $this->nombre $nombre;
  36.         return $this;
  37.     }
  38. }