src/CasinoBundle/Entity/Visit.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Visit
  6.  *
  7.  * @ORM\Table(name="casino_visit")
  8.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\VisitRepository")
  9.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  10.  */
  11. class Visit
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="bigint", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var float|null
  23.      *
  24.      * @ORM\Column(name="value", type="float", nullable=false)
  25.      */
  26.     private $value;
  27.     /**
  28.      * @var float|null
  29.      *
  30.      * @ORM\Column(name="value_change", type="float", nullable=false)
  31.      */
  32.     private $valueChange;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="Country", inversedBy="visits")
  35.      * @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  36.      */
  37.     private $country;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity="Casino", inversedBy="visits")
  40.      * @ORM\JoinColumn(name="casino_id", referencedColumnName="id")
  41.      */
  42.     private $casino;
  43.     /**
  44.      * @return int
  45.      */
  46.     public function getId(): int
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * @param int $id
  52.      */
  53.     public function setId(int $id): void
  54.     {
  55.         $this->id $id;
  56.     }
  57.     public function getValue(): ?float
  58.     {
  59.         return $this->value;
  60.     }
  61.     public function setValue(?float $value): self
  62.     {
  63.         $this->value $value;
  64.         return $this;
  65.     }
  66.     public function getValueChange(): ?float
  67.     {
  68.         return $this->valueChange;
  69.     }
  70.     /**
  71.      * @param float|null $valueChange
  72.      * @return $this
  73.      */
  74.     public function setValueChange(?float $valueChange): self
  75.     {
  76.         $this->valueChange $valueChange;
  77.         return $this;
  78.     }
  79.     /**
  80.      * @return Country
  81.      */
  82.     public function getCountry(): ?Country
  83.     {
  84.         return  $this->country;
  85.     }
  86.     /**
  87.      * @param Country
  88.      * @return Visit
  89.      */
  90.     public function setCountry(?Country $country) : self
  91.     {
  92.         $this->country $country;
  93.         return $this;
  94.     }
  95.     /**
  96.      * @return Casino
  97.      */
  98.     public function getCasino():?Casino
  99.     {
  100.         return $this->casino;
  101.     }
  102.     /**
  103.      * @param Casino
  104.      * @return Visit
  105.      */
  106.     public function setCasino(?Casino $casino) : self
  107.     {
  108.         $this->casino $casino;
  109.         return $this;
  110.     }
  111. }