<?php
namespace App\Entity;
use App\Repository\Actuv2SondageRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Actuv2Sondage
*
*/
#[ORM\Table(name: 'actuv2_sondage')]
#[ORM\Entity(repositoryClass: Actuv2SondageRepository::class)]
class Actuv2Sondage
{
/**
* @var int
*
*/
#[ORM\Column(name: 'id', type: 'bigint', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var \DateTime|null
*
*/
#[ORM\Column(name: 'date', type: 'date', nullable: true, options: ['comment' => 'période'])]
private $date;
/**
* @var string
*
*/
#[ORM\Column(name: 'titre', type: 'string', length: 255, nullable: false)]
private $titre = '';
/**
* @var string
*
*/
#[ORM\Column(name: 'vote', type: 'string', length: 255, nullable: false)]
private $vote = '';
public function getId(): ?string
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getVote(): ?string
{
return $this->vote;
}
public function setVote(string $vote): self
{
$this->vote = $vote;
return $this;
}
public function __toString()
{
return $this->getId();
}
}