src/Entity/Puntuacion.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PuntuacionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PuntosRepository::class)
  7.  */
  8. class Puntuacion
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $total;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $valor;
  24.     /**
  25.      * @ORM\Column(type="date")
  26.      */
  27.     private $fecha;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Comercial::class, inversedBy="puntuacion")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $comercial;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=true)
  35.      */
  36.     private $cupo;
  37.     /**
  38.      * @ORM\Column(type="boolean", nullable=true)
  39.      */
  40.     private $bono;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getTotal(): ?int
  46.     {
  47.         return $this->total;
  48.     }
  49.     public function setTotal(int $total): self
  50.     {
  51.         $this->total $total;
  52.         return $this;
  53.     }
  54.     public function getValor(): ?int
  55.     {
  56.         return $this->valor;
  57.     }
  58.     public function setValor(int $valor): self
  59.     {
  60.         $this->valor $valor;
  61.         return $this;
  62.     }
  63.     public function getFecha(): ?\DateTimeInterface
  64.     {
  65.         return $this->fecha;
  66.     }
  67.     public function setFecha(\DateTimeInterface $fecha): self
  68.     {
  69.         $this->fecha $fecha;
  70.         return $this;
  71.     }
  72.     public function getComercial(): ?Comercial
  73.     {
  74.         return $this->comercial;
  75.     }
  76.     public function setComercial(?Comercial $comercial): self
  77.     {
  78.         $this->comercial $comercial;
  79.         return $this;
  80.     }
  81.     public function getCupo(): ?int
  82.     {
  83.         return $this->cupo;
  84.     }
  85.     public function setCupo(?int $cupo): self
  86.     {
  87.         $this->cupo $cupo;
  88.         return $this;
  89.     }
  90.     public function getBono(): ?bool
  91.     {
  92.         return $this->bono;
  93.     }
  94.     public function setBono(?bool $bono): self
  95.     {
  96.         $this->bono $bono;
  97.         return $this;
  98.     }
  99. }