<?phpnamespace App\Entity;use App\Repository\PuntuacionRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PuntosRepository::class) */class Puntuacion{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $total; /** * @ORM\Column(type="integer") */ private $valor; /** * @ORM\Column(type="date") */ private $fecha; /** * @ORM\ManyToOne(targetEntity=Comercial::class, inversedBy="puntuacion") * @ORM\JoinColumn(nullable=false) */ private $comercial; /** * @ORM\Column(type="integer", nullable=true) */ private $cupo; /** * @ORM\Column(type="boolean", nullable=true) */ private $bono; public function getId(): ?int { return $this->id; } public function getTotal(): ?int { return $this->total; } public function setTotal(int $total): self { $this->total = $total; return $this; } public function getValor(): ?int { return $this->valor; } public function setValor(int $valor): self { $this->valor = $valor; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(\DateTimeInterface $fecha): self { $this->fecha = $fecha; return $this; } public function getComercial(): ?Comercial { return $this->comercial; } public function setComercial(?Comercial $comercial): self { $this->comercial = $comercial; return $this; } public function getCupo(): ?int { return $this->cupo; } public function setCupo(?int $cupo): self { $this->cupo = $cupo; return $this; } public function getBono(): ?bool { return $this->bono; } public function setBono(?bool $bono): self { $this->bono = $bono; return $this; }}