<?php
namespace App\Entity;
use App\Repository\EmailsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EmailsRepository::class)]
class Emails
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\ManyToOne(inversedBy: 'emails')]
#[ORM\JoinColumn(nullable: false)]
private ?InformationEntreprise $information_entreprise = null;
public function getId(): ?int
{
return $this->id;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getInformationEntreprise(): ?InformationEntreprise
{
return $this->information_entreprise;
}
public function setInformationEntreprise(?InformationEntreprise $information_entreprise): self
{
$this->information_entreprise = $information_entreprise;
return $this;
}
}