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