src/CasinoBundle/Entity/MinDeposit.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use App\CmsBundle\Entity\PublishedTrait;
  4. use App\CmsBundle\Entity\SlugTrait;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * MinDeposit
  10.  *
  11.  * @ORM\Table(
  12.  *     name="min_deposit",
  13.  *     uniqueConstraints={
  14.  *        @ORM\UniqueConstraint(name="min_deposit_slug_uindex", columns={"slug"})
  15.  *     }
  16.  * )
  17.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\MinDepositRepository")
  18.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  19.  */
  20. class MinDeposit
  21. {
  22.     use AliasTrait;
  23.     use SlugTrait;
  24.     use PublishedTrait;
  25.     /**
  26.      * @var int
  27.      *
  28.      * @ORM\Column(name="id", type="integer", nullable=false)
  29.      * @ORM\Id
  30.      * @ORM\GeneratedValue(strategy="IDENTITY")
  31.      */
  32.     private $id;
  33.     /**
  34.      * @var int|null
  35.      *
  36.      * @ORM\Column(name="usd_min", type="integer", nullable=true)
  37.      */
  38.     private $usdMin;
  39.     /**
  40.      * @var int|null
  41.      *
  42.      * @ORM\Column(name="usd_max", type="integer", nullable=true)
  43.      */
  44.     private $usdMax;
  45.     /**
  46.      * @var int|null
  47.      *
  48.      * @ORM\Column(name="eur_min", type="integer", nullable=true)
  49.      */
  50.     private $eurMin;
  51.     /**
  52.      * @var int|null
  53.      *
  54.      * @ORM\Column(name="eur_max", type="integer", nullable=true)
  55.      */
  56.     private $eurMax;
  57.     /**
  58.      * @var int|null
  59.      *
  60.      * @ORM\Column(name="gbp_min", type="integer", nullable=true)
  61.      */
  62.     private $gbpMin;
  63.     /**
  64.      * @var int|null
  65.      *
  66.      * @ORM\Column(name="gbp_max", type="integer", nullable=true)
  67.      */
  68.     private $gbpMax;
  69.     /**
  70.      * @ORM\OneToMany(targetEntity="App\CasinoBundle\Entity\Alias", mappedBy="minDeposit", cascade={"persist"}, orphanRemoval=true)
  71.      */
  72.     private Collection $aliases;
  73.     /**
  74.      * @var int|null
  75.      *
  76.      * @ORM\Column(name="value", type="integer", nullable=true)
  77.      */
  78.     private $value;
  79.     /**
  80.      * @var string|null
  81.      *
  82.      * @ORM\Column(name="currency", type="string", nullable=true)
  83.      */
  84.     private $currency;
  85.     public function __construct()
  86.     {
  87.         $this->aliases = new ArrayCollection();
  88.     }
  89.     public function __toString()
  90.     {
  91.         return $this->slug;
  92.     }
  93.     public function getName(): string
  94.     {
  95.         return $this->getSlug();
  96.     }
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function setId(int $id): self
  102.     {
  103.         $this->id $id;
  104.         return $this;
  105.     }
  106.     public function getUsdMin(): ?int
  107.     {
  108.         return $this->usdMin;
  109.     }
  110.     public function setUsdMin(?int $usdMin): self
  111.     {
  112.         $this->usdMin $usdMin;
  113.         return $this;
  114.     }
  115.     public function getUsdMax(): ?int
  116.     {
  117.         return $this->usdMax;
  118.     }
  119.     public function setUsdMax(?int $usdMax): self
  120.     {
  121.         $this->usdMax $usdMax;
  122.         return $this;
  123.     }
  124.     public function getEurMin(): ?int
  125.     {
  126.         return $this->eurMin;
  127.     }
  128.     public function setEurMin(?int $eurMin): self
  129.     {
  130.         $this->eurMin $eurMin;
  131.         return $this;
  132.     }
  133.     public function getEurMax(): ?int
  134.     {
  135.         return $this->eurMax;
  136.     }
  137.     public function setEurMax(?int $eurMax): self
  138.     {
  139.         $this->eurMax $eurMax;
  140.         return $this;
  141.     }
  142.     public function getGbpMin(): ?int
  143.     {
  144.         return $this->gbpMin;
  145.     }
  146.     public function setGbpMin(?int $gbpMin): self
  147.     {
  148.         $this->gbpMin $gbpMin;
  149.         return $this;
  150.     }
  151.     public function getGbpMax(): ?int
  152.     {
  153.         return $this->gbpMax;
  154.     }
  155.     public function setGbpMax(?int $gbpMax): self
  156.     {
  157.         $this->gbpMax $gbpMax;
  158.         return $this;
  159.     }
  160.     public function getValue(): ?int
  161.     {
  162.         return $this->value;
  163.     }
  164.     public function setValue(?int $value): self
  165.     {
  166.         $this->value $value;
  167.         return $this;
  168.     }
  169.     public function getCurrency(): ?string
  170.     {
  171.         return $this->currency;
  172.     }
  173.     public function setCurrency(?string $currency): self
  174.     {
  175.         $this->currency $currency;
  176.         return $this;
  177.     }
  178. }