src/Entity/Client.php line 11
<?php
namespace App\Entity;
use App\Repository\ClientRepository;
use Doctrine\DBAL\Types\Types;
use App\Entity\Image;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ClientRepository::class)]
class Client
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $titre = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $lien = null;
#[ORM\ManyToOne(inversedBy: 'clients')]
private ?Image $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getLien(): ?string
{
return $this->lien;
}
public function setLien(string $lien): self
{
$this->lien = $lien;
return $this;
}
public function getImage(): ?Image
{
return $this->image;
}
public function setImage(?Image $image): self
{
$this->image = $image;
return $this;
}
}