src/CasinoBundle/Entity/OfflineCasino.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use App\CmsBundle\Entity\TimeStampedTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * OfflineCasino
  7.  *
  8.  * @ORM\Table(
  9.  *     name="casino_offline",
  10.  *     indexes={
  11.  *          @ORM\Index(name="casino_offline_lat_index", columns={"lat"}),
  12.  *          @ORM\Index(name="casino_offline_lng_index", columns={"lng"}),
  13.  *          @ORM\Index(name="casino_offline_slug_index", columns={"slug"}),
  14.  *     }
  15.  * )
  16.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\OfflineCasinoRepository")
  17.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  18.  * @ORM\HasLifecycleCallbacks()
  19.  */
  20. class OfflineCasino
  21. {
  22.     use TimeStampedTrait;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="id", type="integer", nullable=false)
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue(strategy="IDENTITY")
  29.      */
  30.     private $id;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="name", type="string", length=61, nullable=false)
  35.      */
  36.     private $name;
  37.     /**
  38.      * @var float
  39.      *
  40.      * @ORM\Column(name="lat", type="decimal", precision=11, scale=8, nullable=false)
  41.      */
  42.     private $lat;
  43.     /**
  44.      * @var float
  45.      *
  46.      * @ORM\Column(name="lng", type="decimal", precision=11, scale=8, nullable=false)
  47.      */
  48.     private $lng;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="logo", type="string", length=255, nullable=true)
  53.      */
  54.     private $logo;
  55.     /**
  56.      * @var integer
  57.      *
  58.      * @ORM\Column(name="slot_machines_count", type="integer", nullable=true)
  59.      */
  60.     private $slotMachinesCount;
  61.     /**
  62.      * @var integer
  63.      *
  64.      * @ORM\Column(name="table_games_count", type="integer", nullable=true)
  65.      */
  66.     private $tableGamesCount;
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(name="slug", type="string", length=255, nullable=false)
  71.      */
  72.     private $slug;
  73.     /**
  74.      * @var float
  75.      *
  76.      * @ORM\Column(name="rating_value", type="decimal", precision=4, scale=1, nullable=false)
  77.      */
  78.     private $rating;
  79.     /**
  80.      * @var string
  81.      *
  82.      * @ORM\Column(name="info_players_club_url", type="string", length=255, nullable=true)
  83.      */
  84.     private $clubUrl;
  85.     /**
  86.      * @var string
  87.      *
  88.      * @ORM\Column(name="open", type="string", length=255, nullable=true)
  89.      */
  90.     private $open;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(name="phone", type="string", length=21, nullable=true)
  95.      */
  96.     private $phone;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(name="address", type="string", length=255, nullable=true)
  101.      */
  102.     private $address;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="spa", type="string", length=255, nullable=true)
  107.      */
  108.     private $spa;
  109.     /**
  110.      * @var string
  111.      *
  112.      * @ORM\Column(name="spa_url", type="string", length=255, nullable=true)
  113.      */
  114.     private $spaUrl;
  115.     /**
  116.      * @var string
  117.      *
  118.      * @ORM\Column(name="information_other", type="string", length=255, nullable=true)
  119.      */
  120.     private $information;
  121.     /**
  122.      * @var string
  123.      *
  124.      * @ORM\Column(name="website_url", type="string", length=255, nullable=true)
  125.      */
  126.     private $websiteUrl;
  127.     /**
  128.      * @var string
  129.      *
  130.      * @ORM\Column(name="facebook_url", type="string", length=255, nullable=true)
  131.      */
  132.     private $facebookUrl;
  133.     /**
  134.      * @var string
  135.      *
  136.      * @ORM\Column(name="twitter_url", type="string", length=255, nullable=true)
  137.      */
  138.     private $twitterUrl;
  139.     /**
  140.      * @var string
  141.      *
  142.      * @ORM\Column(name="is_closed", type="integer")
  143.      */
  144.     private $isClosed;
  145.     /**
  146.      * @var Country|null
  147.      * @ORM\ManyToOne(targetEntity="Country", inversedBy="offlineCasinos")
  148.      * @ORM\JoinColumn(name="country", referencedColumnName="id")
  149.      */
  150.     private $country;
  151.     /**
  152.      * @var City|null
  153.      * @ORM\ManyToOne(targetEntity="City", inversedBy="offlineCasinos")
  154.      * @ORM\JoinColumn(name="city", referencedColumnName="id")
  155.      */
  156.     private $city;
  157.     public function __construct()
  158.     {
  159.     }
  160.     public function __toString(): string
  161.     {
  162.         return $this->name;
  163.     }
  164.     public function getId(): int
  165.     {
  166.         return $this->id;
  167.     }
  168.     public function setId(int $id): void
  169.     {
  170.         $this->id $id;
  171.     }
  172.     public function getName(): string
  173.     {
  174.         return $this->name;
  175.     }
  176.     public function setName(string $name): self
  177.     {
  178.         $this->name $name;
  179.         return $this;
  180.     }
  181.     public function getLat(): float
  182.     {
  183.         return $this->lat;
  184.     }
  185.     public function setLat(float $lat): self
  186.     {
  187.         $this->lat $lat;
  188.         return $this;
  189.     }
  190.     public function getLng(): float
  191.     {
  192.         return $this->lng;
  193.     }
  194.     public function setLng(float $lng): self
  195.     {
  196.         $this->lng $lng;
  197.         return $this;
  198.     }
  199.     public function getLogo(): ?string
  200.     {
  201.         return $this->logo;
  202.     }
  203.     public function setLogo(string $logo): self
  204.     {
  205.         $this->logo $logo;
  206.         return $this;
  207.     }
  208.     public function getSlug(): string
  209.     {
  210.         return $this->slug;
  211.     }
  212.     public function setSlug(string $slug): self
  213.     {
  214.         $this->slug $slug;
  215.         return $this;
  216.     }
  217.     public function getSlotMachinesCount(): ?int
  218.     {
  219.         return $this->slotMachinesCount;
  220.     }
  221.     public function setSlotMachinesCount(?int $slotMachinesCount): self
  222.     {
  223.         $this->slotMachinesCount $slotMachinesCount;
  224.         return $this;
  225.     }
  226.     public function getTableGamesCount(): ?int
  227.     {
  228.         return $this->tableGamesCount;
  229.     }
  230.     public function setTableGamesCount(?int $tableGamesCount): self
  231.     {
  232.         $this->tableGamesCount $tableGamesCount;
  233.         return $this;
  234.     }
  235.     public function getRating(): float
  236.     {
  237.         return $this->rating;
  238.     }
  239.     public function setRating(float $rating): self
  240.     {
  241.         $this->rating $rating;
  242.         return $this;
  243.     }
  244.     public function getClubUrl(): string
  245.     {
  246.         return $this->clubUrl;
  247.     }
  248.     public function setClubUrl(?string $clubUrl): self
  249.     {
  250.         $this->clubUrl $clubUrl;
  251.         return $this;
  252.     }
  253.     public function getOpen(): ?string
  254.     {
  255.         return $this->open;
  256.     }
  257.     public function setOpen(?string $open): self
  258.     {
  259.         $this->open $open;
  260.         return $this;
  261.     }
  262.     public function getPhone(): ?string
  263.     {
  264.         return $this->phone;
  265.     }
  266.     public function setPhone(?string $phone): self
  267.     {
  268.         $this->phone $phone;
  269.         return $this;
  270.     }
  271.     public function getAddress(): ?string
  272.     {
  273.         return $this->address;
  274.     }
  275.     public function setAddress(?string $address): self
  276.     {
  277.         $this->address $address;
  278.         return $this;
  279.     }
  280.     public function getSpa(): ?string
  281.     {
  282.         return $this->spa;
  283.     }
  284.     public function setSpa(?string $spa): self
  285.     {
  286.         $this->spa $spa;
  287.         return $this;
  288.     }
  289.     public function getSpaUrl(): ?string
  290.     {
  291.         return $this->spaUrl;
  292.     }
  293.     public function setSpaUrl(?string $spaUrl): self
  294.     {
  295.         $this->spaUrl $spaUrl;
  296.         return $this;
  297.     }
  298.     public function getInformation(): ?string
  299.     {
  300.         return $this->information;
  301.     }
  302.     public function setInformation(?string $information): self
  303.     {
  304.         $this->information $information;
  305.         return $this;
  306.     }
  307.     public function getWebsiteUrl(): ?string
  308.     {
  309.         return $this->websiteUrl;
  310.     }
  311.     public function setWebsiteUrl(?string $websiteUrl): self
  312.     {
  313.         $this->websiteUrl $websiteUrl;
  314.         return $this;
  315.     }
  316.     public function getFacebookUrl(): ?string
  317.     {
  318.         return $this->facebookUrl;
  319.     }
  320.     public function setFacebookUrl(?string $facebookUrl): self
  321.     {
  322.         $this->facebookUrl $facebookUrl;
  323.         return $this;
  324.     }
  325.     public function getTwitterUrl(): ?string
  326.     {
  327.         return $this->twitterUrl;
  328.     }
  329.     public function setTwitterUrl(?string $twitterUrl): self
  330.     {
  331.         $this->twitterUrl $twitterUrl;
  332.         return $this;
  333.     }
  334.     public function getIsClosed(): bool
  335.     {
  336.         return ($this->isClosed === 1);
  337.     }
  338.     public function setIsClosed(bool $isClosed): self
  339.     {
  340.         $this->isClosed = ($isClosed) ? 0;
  341.         return $this;
  342.     }
  343.     public function setCountryId(int $countryId): self
  344.     {
  345.         $this->countryId $countryId;
  346.         return $this;
  347.     }
  348.     public function getCountryId(): int
  349.     {
  350.         return $this->countryId;
  351.     }
  352.     public function setCityId(int $cityId): self
  353.     {
  354.         $this->cityId $cityId;
  355.         return $this;
  356.     }
  357.     public function getCityId(): ?int
  358.     {
  359.         return $this->cityId;
  360.     }
  361.     public function setCountry(Country $country): self
  362.     {
  363.         $this->country $country;
  364.         return $this;
  365.     }
  366.     public function getCountry(): ?Country
  367.     {
  368.         return $this->country;
  369.     }
  370.     public function setCity(City $city): self
  371.     {
  372.         $this->city $city;
  373.         return $this;
  374.     }
  375.     public function getCity(): ?City
  376.     {
  377.         return $this->city;
  378.     }
  379. }