<?php
namespace App\Entity;
use App\Repository\Actuv2SondagevoteRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Actuv2Sondagevote
*
*/
#[ORM\Table(name: 'actuv2_sondageVote')]
#[ORM\Entity]
class Actuv2Sondagevote
{
/**
* @var int
*
*/
#[ORM\Column(name: 'id', type: 'bigint', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
/**
* @var int
*
*/
#[ORM\Column(name: 'FK_sondage', type: 'bigint', nullable: false)]
private $fkSondage;
/**
* @var int
*
*/
#[ORM\Column(name: 'FK_cabinet', type: 'bigint', nullable: false)]
private $fkCabinet;
/**
* @var string
*
*/
#[ORM\Column(name: 'ip', type: 'string', length: 50, nullable: false)]
private $ip = '';
/**
* @var int
*
*/
#[ORM\Column(name: 'reponse', type: 'integer', nullable: false, options: ['default' => -1, 'comment' => '1=oui ; 2=non'])]
private $reponse = -1;
public function getId(): ?string
{
return $this->id;
}
public function getFkSondage(): ?string
{
return $this->fkSondage;
}
public function setFkSondage(string $fkSondage): self
{
$this->fkSondage = $fkSondage;
return $this;
}
public function getFkCabinet(): ?string
{
return $this->fkCabinet;
}
public function setFkCabinet(string $fkCabinet): self
{
$this->fkCabinet = $fkCabinet;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
public function getReponse(): ?int
{
return $this->reponse;
}
public function setReponse(int $reponse): self
{
$this->reponse = $reponse;
return $this;
}
public function __toString()
{
return $this->getFkSondage();
}
}