src/CasinoBundle/Entity/SlotCasinoGeo.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SlotCasinoGeo
  6.  *
  7.  * @ORM\Table(
  8.  *     name="slot_casino_geo",
  9.  *     indexes={
  10.  *         @ORM\Index(name="scg_rank", columns={"rank"}),
  11.  *         @ORM\Index(name="scg_in_lobby", columns={"in_lobby"}),
  12.  *         @ORM\Index(name="scg_new_game", columns={"new_game"}),
  13.  *     }
  14.  * )
  15.  * @ORM\Entity()
  16.  * @ORM\HasLifecycleCallbacks()
  17.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  18.  */
  19. class SlotCasinoGeo
  20. {
  21.     /**
  22.      * @ORM\Id()
  23.      * @ORM\GeneratedValue()
  24.      * @ORM\Column(type="integer")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @ORM\Column(name="in_lobby", type="integer", nullable=true)
  29.      */
  30.     private $inLobby;
  31.     /**
  32.      * @ORM\Column(name="rank", type="integer", nullable=true)
  33.      */
  34.     private $rank;
  35.     /**
  36.      * @ORM\Column(name="new_game", type="boolean", nullable=false, options={"default" = false})
  37.      */
  38.     private $newGame;
  39.     /**
  40.      * @var Slot|null
  41.      * @ORM\ManyToOne(targetEntity="Slot", inversedBy="slotCasinosGeos", cascade={"persist"})
  42.      * @ORM\JoinColumn(name="slot_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
  43.      */
  44.     private $slot;
  45.     /**
  46.      * @var Casino|null
  47.      * @ORM\ManyToOne(targetEntity="Casino", inversedBy="slotCasinoGeo")
  48.      * @ORM\JoinColumn(name="casino_id", referencedColumnName="id", nullable=true)
  49.      */
  50.     private $casino;
  51.     /**
  52.      * @var Country|null
  53.      * @ORM\ManyToOne(targetEntity="Country")
  54.      * @ORM\JoinColumn(name="country_id", referencedColumnName="id", nullable=true)
  55.      */
  56.     private $country;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getInLobby(): ?int
  62.     {
  63.         return $this->inLobby;
  64.     }
  65.     public function setInLobby(?int $inLobby): self
  66.     {
  67.         $this->inLobby $inLobby;
  68.         return $this;
  69.     }
  70.     public function getRank(): ?int
  71.     {
  72.         return $this->rank;
  73.     }
  74.     public function setRank(?int $rank): self
  75.     {
  76.         $this->rank $rank;
  77.         return $this;
  78.     }
  79.     public function getNewGame(): ?bool
  80.     {
  81.         return ($this->newGame);
  82.     }
  83.     public function setNewGame(?bool $newGame): self
  84.     {
  85.         $this->newGame $newGame;
  86.         return $this;
  87.     }
  88.     public function getCasino(): ?Casino
  89.     {
  90.         return $this->casino;
  91.     }
  92.     public function setCasino(?Casino $casino): self
  93.     {
  94.         $this->casino $casino;
  95.         return $this;
  96.     }
  97.     public function getSlot(): ?Slot
  98.     {
  99.         return $this->slot;
  100.     }
  101.     public function setSlot(?Slot $slot): self
  102.     {
  103.         $this->slot $slot;
  104.         return $this;
  105.     }
  106.     public function getCountry(): ?Country
  107.     {
  108.         return $this->country;
  109.     }
  110.     public function setCountry(?Country $country): self
  111.     {
  112.         $this->country $country;
  113.         return $this;
  114.     }
  115. }