<?php
namespace App\CasinoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\CmsBundle\Entity\IdTrait;
/**
* Vote
*
* @ORM\Table(
* name="vote",
* indexes={
* @ORM\Index(name="vote_url_index", columns={"url"}),
* @ORM\Index(name="vote_ip_index", columns={"ip"})
* },
* uniqueConstraints={
* @ORM\UniqueConstraint(name="vote_ip_url_uindex", columns={"url","ip"})
* }
* )
* @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\VoteRepository")
*/
class Vote
{
use IdTrait, IpTrait, UrlTrait;
/**
* @var integer|null
*
* @ORM\Column(name="value", type="integer", nullable=false)
*/
public $value;
public function getValue(): ?int
{
return $this->value;
}
public function setValue(int $value): self
{
$this->value = $value;
return $this;
}
}