src/CasinoBundle/Entity/Trustpilot.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Trustpilot
  6.  * @ORM\Entity()
  7.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  8.  */
  9. class Trustpilot
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Column(name="id", type="integer", nullable=false)
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue()
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\OneToOne(targetEntity="App\CasinoBundle\Entity\Casino", inversedBy="trustpilot")
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $casino;
  24.     /**
  25.      * @var integer
  26.      *
  27.      * @ORM\Column(type="integer", nullable=true)
  28.      */
  29.     private $reviewTotal;
  30.     /**
  31.      * @var float
  32.      *
  33.      * @ORM\Column(type="float", nullable=true)
  34.      */
  35.     private $average;
  36.     /**
  37.      * @var float
  38.      *
  39.      * @ORM\Column(type="float", nullable=true)
  40.      */
  41.     private $bad;
  42.     /**
  43.      * @var float
  44.      *
  45.      * @ORM\Column(type="float", nullable=true)
  46.      */
  47.     private $excellent;
  48.     /**
  49.      * @var float
  50.      *
  51.      * @ORM\Column(type="float", nullable=true)
  52.      */
  53.     private $great;
  54.     /**
  55.      * @var float
  56.      *
  57.      * @ORM\Column(type="float", nullable=true)
  58.      */
  59.     private $poor;
  60.     /**
  61.      * @var float
  62.      *
  63.      * @ORM\Column(type="float", nullable=true)
  64.      */
  65.     private $score;
  66.     /**
  67.      * @return int
  68.      */
  69.     public function getId(): int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function setId(int $id): void
  74.     {
  75.         $this->id $id;
  76.     }
  77.     public function getCasino(): ?Casino
  78.     {
  79.         return $this->casino;
  80.     }
  81.     public function setCasino(?Casino $casino): self
  82.     {
  83.         $this->casino $casino;
  84.         return $this;
  85.     }
  86.     public function setReviewTotal(?int $value): self
  87.     {
  88.         $this->reviewTotal $value;
  89.         return $this;
  90.     }
  91.     public function getReviewTotal(): ?int
  92.     {
  93.         return $this->reviewTotal;
  94.     }
  95.     public function setAverage(?float $value): self
  96.     {
  97.         $this->average $value;
  98.         return $this;
  99.     }
  100.     public function getAverage(): ?float
  101.     {
  102.         return $this->average;
  103.     }
  104.     public function setBad(?float $value): self
  105.     {
  106.         $this->bad $value;
  107.         return $this;
  108.     }
  109.     public function getBad(): ?float
  110.     {
  111.         return $this->bad;
  112.     }
  113.     public function setExcellent(?float $value): self
  114.     {
  115.         $this->excellent $value;
  116.         return $this;
  117.     }
  118.     public function getExcellent(): ?float
  119.     {
  120.         return $this->excellent;
  121.     }
  122.     public function setGreat(?float $value): self
  123.     {
  124.         $this->great $value;
  125.         return $this;
  126.     }
  127.     public function getGreat(): ?float
  128.     {
  129.         return $this->great;
  130.     }
  131.     public function setPoor(?float $value): self
  132.     {
  133.         $this->poor $value;
  134.         return $this;
  135.     }
  136.     public function getPoor(): ?float
  137.     {
  138.         return $this->poor;
  139.     }
  140.     public function setScore(?float $value): self
  141.     {
  142.         $this->score $value;
  143.         return $this;
  144.     }
  145.     public function getScore(): ?float
  146.     {
  147.         return $this->score;
  148.     }
  149. }