src/CasinoBundle/Entity/ProsAndCons.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\CasinoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Visit
  6.  *
  7.  * @ORM\Table(name="casino_pros_and_cons")
  8.  * @ORM\Entity(repositoryClass="App\CasinoBundle\Repository\ProsAndConsRepository")
  9.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="one_day")
  10.  */
  11. class ProsAndCons
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="bigint", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var float|null
  23.      *
  24.      * @ORM\Column(name="value", type="text", nullable=false)
  25.      */
  26.     private $value;
  27.     /**
  28.      * @var float|null
  29.      *
  30.      * @ORM\Column(name="type", type="boolean", nullable=false)
  31.      */
  32.     private $type;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="Casino", inversedBy="prosAndCons")
  35.      * @ORM\JoinColumn(name="casino_id", referencedColumnName="id")
  36.      */
  37.     private $casino;
  38.     public function getId(): int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function setId(int $id): void
  43.     {
  44.         $this->id $id;
  45.     }
  46.     public function getValue(): ?string
  47.     {
  48.         return $this->value;
  49.     }
  50.     public function setValue(string $value): self
  51.     {
  52.         $this->value $value;
  53.         return $this;
  54.     }
  55.     public function getType(): ?bool
  56.     {
  57.         return $this->type;
  58.     }
  59.     public function setType(bool $type): self
  60.     {
  61.         $this->type $type;
  62.         return $this;
  63.     }
  64.     public function getCasino(): ?Casino
  65.     {
  66.         return $this->casino;
  67.     }
  68.     public function setCasino(Casino $casino): self
  69.     {
  70.         $this->casino $casino;
  71.         return $this;
  72.     }
  73. }