src/CasinoBundle/Entity/CasinoLicence.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * CasinoLicence
  8.  *
  9.  * @ORM\Table(
  10.  *     name="casino_licence"
  11.  * )
  12.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\CasinoLicenceRepository")
  13.  */
  14. class CasinoLicence
  15. {
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id", type="integer", nullable=false)
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="IDENTITY")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="number", type="string", length=255, nullable=true)
  28.      */
  29.     private $number;
  30.     /**
  31.      * @var integer
  32.      *
  33.      * @ORM\Column(name="status", type="integer", nullable=true)
  34.      */
  35.     private $status;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\CasinoBundle\Entity\Casino", inversedBy="casinoLicences", cascade={"persist"})
  38.      */
  39.     private $casino;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\CasinoBundle\Entity\Licence", inversedBy="casinoLicences", cascade={"persist"})
  42.      */
  43.     private $licence;
  44.     public function __construct()
  45.     {
  46.     }
  47.     /**
  48.      * @return int|null
  49.      */
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     /**
  55.      * @param int $id
  56.      */
  57.     public function setId(int $id): void
  58.     {
  59.         $this->id $id;
  60.     }
  61.     /**
  62.      * @return string
  63.      */
  64.     public function getNumber(): ?string
  65.     {
  66.         return $this->number;
  67.     }
  68.     /**
  69.      * @param string $number
  70.      */
  71.     public function setNumber(string $number): self
  72.     {
  73.         $this->number $number;
  74.         return $this;
  75.     }
  76.     /**
  77.      * @return integer
  78.      */
  79.     public function getStatus(): ?int
  80.     {
  81.         return $this->status;
  82.     }
  83.     /**
  84.      * @param string $status
  85.      */
  86.     public function setStatus(string $status): self
  87.     {
  88.         $this->status $status;
  89.         return $this;
  90.     }
  91.     public function setCasino(Casino $casino): self
  92.     {
  93.         $this->casino $casino;
  94.         return $this;
  95.     }
  96.     public function getCasino(): ?Casino
  97.     {
  98.         return $this->casino;
  99.     }
  100.     public function setLicence(Licence $licence): self
  101.     {
  102.         $this->licence $licence;
  103.         return $this;
  104.     }
  105.     public function getLicence(): ?Licence
  106.     {
  107.         return $this->licence;
  108.     }
  109. }