src/Entity/RegistroWhatsappNumero.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RegistroWhatsappNumeroRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=RegistroWhatsappNumeroRepository::class)
  7.  */
  8. class RegistroWhatsappNumero
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=5)
  18.      */
  19.     private $nLoteria;
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=true)
  22.      */
  23.     private $cantidad;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=RegistroWhatsapp::class, inversedBy="numeros")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $registroWhatsapp;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getNLoteria(): ?string
  34.     {
  35.         return $this->nLoteria;
  36.     }
  37.     public function setNLoteria(string $nLoteria): self
  38.     {
  39.         $this->nLoteria $nLoteria;
  40.         return $this;
  41.     }
  42.     public function getCantidad(): ?int
  43.     {
  44.         return $this->cantidad;
  45.     }
  46.     public function setCantidad(?int $cantidad): self
  47.     {
  48.         $this->cantidad $cantidad;
  49.         return $this;
  50.     }
  51.     public function getRegistroWhatsapp(): ?RegistroWhatsapp
  52.     {
  53.         return $this->registroWhatsapp;
  54.     }
  55.     public function setRegistroWhatsapp(?RegistroWhatsapp $registroWhatsapp): self
  56.     {
  57.         $this->registroWhatsapp $registroWhatsapp;
  58.         return $this;
  59.     }
  60. }