src/Entity/ProposNous.php line 12
<?php
namespace App\Entity;
use App\Repository\ProposNousRepository;
use Doctrine\DBAL\Types\Types;
use Gedmo\Mapping\Anotation as Gedmo;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProposNousRepository::class)]
class ProposNous
{
use TimestampableEntity;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $image = null;
#[ORM\Column(nullable: true)]
private ?bool $statut = null;
#[Gedmo\Timestampable(on :'create')]
private ?\DateTimeImmutable $created_at = null;
#[Gedmo\Timestampable(on :'create')]
private ?\DateTimeImmutable $updated_at = null;
public function getId(): ?int
{
return $this->id;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(?bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updated_at;
}
}