src/Entity/Actuallite.php line 12
<?php
namespace App\Entity;
use App\Repository\ActualliteRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Anotation as Gedmo;
use Gedmo\Timestampable\Traits\TimestampableEntity;
#[ORM\Entity(repositoryClass: ActualliteRepository::class)]
class Actuallite
{
use TimestampableEntity;
#[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]
private ?bool $statut = null;
#[Gedmo\Timestampable(on :'create')]
private ?\DateTimeImmutable $created_at = null;
#[Gedmo\Timestampable(on :'update')]
private ?\DateTimeImmutable $updated_at = null;
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updated_at;
}
#[ORM\Column(length: 255)]
private ?string $url_image = null;
#[ORM\ManyToOne(inversedBy: 'actuallites')]
#[ORM\JoinColumn(nullable: false)]
private ?Category $category = 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 isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getUrlImage(): ?string
{
return $this->url_image;
}
public function setUrlImage(string $url_image): self
{
$this->url_image = $url_image;
return $this;
}
public function getCategory(): ?Category
{
return $this->category;
}
public function setCategory(?Category $category): self
{
$this->category = $category;
return $this;
}
}