hegresphere/src/Entity/Annonce.php
2024-09-26 17:23:24 +02:00

58 lines
1019 B
PHP

<?php
namespace App\Entity;
use App\Repository\AnnonceRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AnnonceRepository::class)]
class Annonce
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $Titre = null;
#[ORM\Column(length: 255)]
private ?string $Description = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): static
{
$this->id = $id;
return $this;
}
public function getTitre(): ?string
{
return $this->Titre;
}
public function setTitre(string $Titre): static
{
$this->Titre = $Titre;
return $this;
}
public function getDescription(): ?string
{
return $this->Description;
}
public function setDescription(string $Description): static
{
$this->Description = $Description;
return $this;
}
}