<?php
namespace App\Entity;
use App\Repository\SuperMandanteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SuperMandanteRepository::class)]
class SuperMandante
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $nombre = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $telefono = null;
#[ORM\Column(options: ["default" => true])]
private ?bool $activo = true;
// === Getters y Setters ===
public function __toString(): string
{
return (string) $this->nombre;
}
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): static
{
$this->email = $email;
return $this;
}
public function getTelefono(): ?string
{
return $this->telefono;
}
public function setTelefono(?string $telefono): static
{
$this->telefono = $telefono;
return $this;
}
public function isActivo(): ?bool
{
return $this->activo;
}
public function setActivo(bool $activo): static
{
$this->activo = $activo;
return $this;
}
}