<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\PipelineContactRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PipelineContactRepository::class)]#[ORM\Table(name: 'pipeline_contact')]class PipelineContact{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; /** * Libellé affiché dans le select admin (ex: "Amira", "Karine", ...) */ #[ORM\Column(type: 'string', length: 120)] private string $label; /** * Email du contact (affiché dans le mail / utilisé en reply-to si besoin) */ #[ORM\Column(type: 'string', length: 180)] private string $email; /** * Lien Calendly à utiliser pour ce contact */ #[ORM\Column(type: 'string', length: 255)] private string $calendlyLink; /** * Optionnel : permet de désactiver un contact sans le supprimer */ #[ORM\Column(type: 'boolean')] private bool $isActive = true; public function __toString(): string { return $this->label; } #[ORM\Column(type: 'datetime_immutable')] private \DateTimeImmutable $createdAt; #[ORM\Column(type: 'datetime_immutable')] private \DateTimeImmutable $updatedAt; public function __construct() { $now = new \DateTimeImmutable(); $this->createdAt = $now; $this->updatedAt = $now; } public function getId(): ?int { return $this->id; } public function getLabel(): string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getEmail(): string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getCalendlyLink(): string { return $this->calendlyLink; } public function setCalendlyLink(string $calendlyLink): self { $this->calendlyLink = $calendlyLink; return $this; } public function isActive(): bool { return $this->isActive; } public function setIsActive(bool $isActive): self { $this->isActive = $isActive; return $this; } public function getCreatedAt(): \DateTimeImmutable { return $this->createdAt; } public function getUpdatedAt(): \DateTimeImmutable { return $this->updatedAt; } public function touch(): self { $this->updatedAt = new \DateTimeImmutable(); return $this; }}