<?php
namespace App\Entity;
use App\Repository\ClientSettingsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ClientSettingsRepository::class)]
class ClientSettings
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?bool $displayContact = null;
#[ORM\OneToOne(inversedBy: 'clientSettings', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private ?Client $client = null;
public function getId(): ?int
{
return $this->id;
}
public function isDisplayContact(): ?bool
{
return $this->displayContact;
}
public function setDisplayContact(?bool $displayContact): static
{
$this->displayContact = $displayContact;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(Client $client): static
{
$this->client = $client;
return $this;
}
}