<?php
namespace App\CasinoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Trustpilot
* @ORM\Entity()
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
*/
class Trustpilot
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue()
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\CasinoBundle\Entity\Casino", inversedBy="trustpilot")
* @ORM\JoinColumn(nullable=false)
*/
private $casino;
/**
* @var integer
*
* @ORM\Column(type="integer", nullable=true)
*/
private $reviewTotal;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $average;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $bad;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $excellent;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $great;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $poor;
/**
* @var float
*
* @ORM\Column(type="float", nullable=true)
*/
private $score;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
public function setId(int $id): void
{
$this->id = $id;
}
public function getCasino(): ?Casino
{
return $this->casino;
}
public function setCasino(?Casino $casino): self
{
$this->casino = $casino;
return $this;
}
public function setReviewTotal(?int $value): self
{
$this->reviewTotal = $value;
return $this;
}
public function getReviewTotal(): ?int
{
return $this->reviewTotal;
}
public function setAverage(?float $value): self
{
$this->average = $value;
return $this;
}
public function getAverage(): ?float
{
return $this->average;
}
public function setBad(?float $value): self
{
$this->bad = $value;
return $this;
}
public function getBad(): ?float
{
return $this->bad;
}
public function setExcellent(?float $value): self
{
$this->excellent = $value;
return $this;
}
public function getExcellent(): ?float
{
return $this->excellent;
}
public function setGreat(?float $value): self
{
$this->great = $value;
return $this;
}
public function getGreat(): ?float
{
return $this->great;
}
public function setPoor(?float $value): self
{
$this->poor = $value;
return $this;
}
public function getPoor(): ?float
{
return $this->poor;
}
public function setScore(?float $value): self
{
$this->score = $value;
return $this;
}
public function getScore(): ?float
{
return $this->score;
}
}