<?php
namespace App\Entity;
use App\Repository\CommuniqueRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CommuniqueRepository::class)
*/
class Communique
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $titre;
/**
* @ORM\Column(type="text")
*/
private $contenu;
/**
* @ORM\Column(type="datetime")
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity=Federation::class, inversedBy="communiques")
*/
private $federation;
/**
* @ORM\ManyToOne(targetEntity=Province::class, inversedBy="communiques")
*/
private $province;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $urgent;
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 getContenu(): ?string
{
return $this->contenu;
}
public function setContenu(string $contenu): self
{
$this->contenu = $contenu;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getFederation(): ?Federation
{
return $this->federation;
}
public function setFederation(?Federation $federation): self
{
$this->federation = $federation;
return $this;
}
public function getProvince(): ?Province
{
return $this->province;
}
public function setProvince(?Province $province): self
{
$this->province = $province;
return $this;
}
public function getUrgent(): ?bool
{
return $this->urgent;
}
public function setUrgent(?bool $urgent): self
{
$this->urgent = $urgent;
return $this;
}
}