<?php
namespace App\CasinoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SlotCasinoGeo
*
* @ORM\Table(
* name="slot_casino_geo",
* indexes={
* @ORM\Index(name="scg_rank", columns={"rank"}),
* @ORM\Index(name="scg_in_lobby", columns={"in_lobby"}),
* @ORM\Index(name="scg_new_game", columns={"new_game"}),
* }
* )
* @ORM\Entity()
* @ORM\HasLifecycleCallbacks()
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
*/
class SlotCasinoGeo
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(name="in_lobby", type="integer", nullable=true)
*/
private $inLobby;
/**
* @ORM\Column(name="rank", type="integer", nullable=true)
*/
private $rank;
/**
* @ORM\Column(name="new_game", type="boolean", nullable=false, options={"default" = false})
*/
private $newGame;
/**
* @var Slot|null
* @ORM\ManyToOne(targetEntity="Slot", inversedBy="slotCasinosGeos", cascade={"persist"})
* @ORM\JoinColumn(name="slot_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
*/
private $slot;
/**
* @var Casino|null
* @ORM\ManyToOne(targetEntity="Casino", inversedBy="slotCasinoGeo")
* @ORM\JoinColumn(name="casino_id", referencedColumnName="id", nullable=true)
*/
private $casino;
/**
* @var Country|null
* @ORM\ManyToOne(targetEntity="Country")
* @ORM\JoinColumn(name="country_id", referencedColumnName="id", nullable=true)
*/
private $country;
public function getId(): ?int
{
return $this->id;
}
public function getInLobby(): ?int
{
return $this->inLobby;
}
public function setInLobby(?int $inLobby): self
{
$this->inLobby = $inLobby;
return $this;
}
public function getRank(): ?int
{
return $this->rank;
}
public function setRank(?int $rank): self
{
$this->rank = $rank;
return $this;
}
public function getNewGame(): ?bool
{
return ($this->newGame);
}
public function setNewGame(?bool $newGame): self
{
$this->newGame = $newGame;
return $this;
}
public function getCasino(): ?Casino
{
return $this->casino;
}
public function setCasino(?Casino $casino): self
{
$this->casino = $casino;
return $this;
}
public function getSlot(): ?Slot
{
return $this->slot;
}
public function setSlot(?Slot $slot): self
{
$this->slot = $slot;
return $this;
}
public function getCountry(): ?Country
{
return $this->country;
}
public function setCountry(?Country $country): self
{
$this->country = $country;
return $this;
}
}