<?php
namespace App\CasinoBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* CasinoLicence
*
* @ORM\Table(
* name="casino_licence"
* )
* @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\CasinoLicenceRepository")
*/
class CasinoLicence
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="number", type="string", length=255, nullable=true)
*/
private $number;
/**
* @var integer
*
* @ORM\Column(name="status", type="integer", nullable=true)
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity="App\CasinoBundle\Entity\Casino", inversedBy="casinoLicences", cascade={"persist"})
*/
private $casino;
/**
* @ORM\ManyToOne(targetEntity="App\CasinoBundle\Entity\Licence", inversedBy="casinoLicences", cascade={"persist"})
*/
private $licence;
public function __construct()
{
}
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getNumber(): ?string
{
return $this->number;
}
/**
* @param string $number
*/
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
/**
* @return integer
*/
public function getStatus(): ?int
{
return $this->status;
}
/**
* @param string $status
*/
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function setCasino(Casino $casino): self
{
$this->casino = $casino;
return $this;
}
public function getCasino(): ?Casino
{
return $this->casino;
}
public function setLicence(Licence $licence): self
{
$this->licence = $licence;
return $this;
}
public function getLicence(): ?Licence
{
return $this->licence;
}
}