src/Entity/Mandante.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MandanteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMandanteRepository::class)]
  6. class Mandante
  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\ManyToOne(targetEntitySuperMandante::class)]
  15.     #[ORM\JoinColumn(nullabletrueonDelete"SET NULL")]
  16.     private ?SuperMandante $superMandante null;
  17.     #[ORM\Column(length20)]
  18.     private ?string $rut null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $razonSocial null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $nombreContacto null;
  23.     #[ORM\Column(length30nullabletrue)]
  24.     private ?string $telefonoContacto null;
  25.     #[ORM\Column(length10nullabletrue)]
  26.     private ?string $anexoTelefono null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $emailContacto null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $emailNotificacion1 null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $emailNotificacion2 null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $emailNotificacion3 null;
  35.     #[ORM\Column(length100nullabletrue)]
  36.     private ?string $holding null;
  37.     #[ORM\Column(options: ["default" => true])]
  38.     private ?bool $activo true;
  39.     public function __toString(): string
  40. {
  41.     return (string) $this->nombre;
  42. }
  43.     // Getters y Setters
  44.     public function getId(): ?int { return $this->id; }
  45.     public function getNombre(): ?string { return $this->nombre; }
  46.     public function setNombre(string $nombre): static { $this->nombre $nombre; return $this; }
  47.     public function getSuperMandante(): ?SuperMandante { return $this->superMandante; }
  48.     public function setSuperMandante(?SuperMandante $superMandante): static { $this->superMandante $superMandante; return $this; }
  49.     public function getRut(): ?string { return $this->rut; }
  50.     public function setRut(string $rut): static { $this->rut $rut; return $this; }
  51.     public function getRazonSocial(): ?string { return $this->razonSocial; }
  52.     public function setRazonSocial(?string $razonSocial): static { $this->razonSocial $razonSocial; return $this; }
  53.     public function getNombreContacto(): ?string { return $this->nombreContacto; }
  54.     public function setNombreContacto(?string $nombreContacto): static { $this->nombreContacto $nombreContacto; return $this; }
  55.     public function getTelefonoContacto(): ?string { return $this->telefonoContacto; }
  56.     public function setTelefonoContacto(?string $telefonoContacto): static { $this->telefonoContacto $telefonoContacto; return $this; }
  57.     public function getAnexoTelefono(): ?string { return $this->anexoTelefono; }
  58.     public function setAnexoTelefono(?string $anexoTelefono): static { $this->anexoTelefono $anexoTelefono; return $this; }
  59.     public function getEmailContacto(): ?string { return $this->emailContacto; }
  60.     public function setEmailContacto(?string $emailContacto): static { $this->emailContacto $emailContacto; return $this; }
  61.     public function getEmailNotificacion1(): ?string { return $this->emailNotificacion1; }
  62.     public function setEmailNotificacion1(?string $emailNotificacion1): static { $this->emailNotificacion1 $emailNotificacion1; return $this; }
  63.     public function getEmailNotificacion2(): ?string { return $this->emailNotificacion2; }
  64.     public function setEmailNotificacion2(?string $emailNotificacion2): static { $this->emailNotificacion2 $emailNotificacion2; return $this; }
  65.     public function getEmailNotificacion3(): ?string { return $this->emailNotificacion3; }
  66.     public function setEmailNotificacion3(?string $emailNotificacion3): static { $this->emailNotificacion3 $emailNotificacion3; return $this; }
  67.     public function getHolding(): ?string { return $this->holding; }
  68.     public function setHolding(?string $holding): static { $this->holding $holding; return $this; }
  69.     public function isActivo(): ?bool { return $this->activo; }
  70.     public function setActivo(bool $activo): static { $this->activo $activo; return $this; }
  71. }