src/Entity/SuperMandante.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SuperMandanteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSuperMandanteRepository::class)]
  6. class SuperMandante
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $nombre null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $email null;
  16.     #[ORM\Column(length50nullabletrue)]
  17.     private ?string $telefono null;
  18.     #[ORM\Column(options: ["default" => true])]
  19.     private ?bool $activo true;
  20.     // === Getters y Setters ===
  21.     public function __toString(): string
  22. {
  23.     return (string) $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): static
  34.     {
  35.         $this->nombre $nombre;
  36.         return $this;
  37.     }
  38.     public function getEmail(): ?string
  39.     {
  40.         return $this->email;
  41.     }
  42.     public function setEmail(?string $email): static
  43.     {
  44.         $this->email $email;
  45.         return $this;
  46.     }
  47.     public function getTelefono(): ?string
  48.     {
  49.         return $this->telefono;
  50.     }
  51.     public function setTelefono(?string $telefono): static
  52.     {
  53.         $this->telefono $telefono;
  54.         return $this;
  55.     }
  56.     public function isActivo(): ?bool
  57.     {
  58.         return $this->activo;
  59.     }
  60.     public function setActivo(bool $activo): static
  61.     {
  62.         $this->activo $activo;
  63.         return $this;
  64.     }
  65. }