<?php
namespace App\Entity;
use App\Repository\MandanteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MandanteRepository::class)]
class Mandante
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $nombre = null;
#[ORM\ManyToOne(targetEntity: SuperMandante::class)]
#[ORM\JoinColumn(nullable: true, onDelete: "SET NULL")]
private ?SuperMandante $superMandante = null;
#[ORM\Column(length: 20)]
private ?string $rut = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $razonSocial = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nombreContacto = null;
#[ORM\Column(length: 30, nullable: true)]
private ?string $telefonoContacto = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $anexoTelefono = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $emailContacto = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $emailNotificacion1 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $emailNotificacion2 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $emailNotificacion3 = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $holding = null;
#[ORM\Column(options: ["default" => true])]
private ?bool $activo = true;
public function __toString(): string
{
return (string) $this->nombre;
}
// Getters y Setters
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 getSuperMandante(): ?SuperMandante { return $this->superMandante; }
public function setSuperMandante(?SuperMandante $superMandante): static { $this->superMandante = $superMandante; return $this; }
public function getRut(): ?string { return $this->rut; }
public function setRut(string $rut): static { $this->rut = $rut; return $this; }
public function getRazonSocial(): ?string { return $this->razonSocial; }
public function setRazonSocial(?string $razonSocial): static { $this->razonSocial = $razonSocial; return $this; }
public function getNombreContacto(): ?string { return $this->nombreContacto; }
public function setNombreContacto(?string $nombreContacto): static { $this->nombreContacto = $nombreContacto; return $this; }
public function getTelefonoContacto(): ?string { return $this->telefonoContacto; }
public function setTelefonoContacto(?string $telefonoContacto): static { $this->telefonoContacto = $telefonoContacto; return $this; }
public function getAnexoTelefono(): ?string { return $this->anexoTelefono; }
public function setAnexoTelefono(?string $anexoTelefono): static { $this->anexoTelefono = $anexoTelefono; return $this; }
public function getEmailContacto(): ?string { return $this->emailContacto; }
public function setEmailContacto(?string $emailContacto): static { $this->emailContacto = $emailContacto; return $this; }
public function getEmailNotificacion1(): ?string { return $this->emailNotificacion1; }
public function setEmailNotificacion1(?string $emailNotificacion1): static { $this->emailNotificacion1 = $emailNotificacion1; return $this; }
public function getEmailNotificacion2(): ?string { return $this->emailNotificacion2; }
public function setEmailNotificacion2(?string $emailNotificacion2): static { $this->emailNotificacion2 = $emailNotificacion2; return $this; }
public function getEmailNotificacion3(): ?string { return $this->emailNotificacion3; }
public function setEmailNotificacion3(?string $emailNotificacion3): static { $this->emailNotificacion3 = $emailNotificacion3; return $this; }
public function getHolding(): ?string { return $this->holding; }
public function setHolding(?string $holding): static { $this->holding = $holding; return $this; }
public function isActivo(): ?bool { return $this->activo; }
public function setActivo(bool $activo): static { $this->activo = $activo; return $this; }
}