<?php
namespace App\Entity;
use App\Repository\CompraRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CompraRepository::class)
*/
class Compra
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $descripcion;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $creditos;
/**
* @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
*/
private $precio;
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(?string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getDescripcion(): ?string
{
return $this->descripcion;
}
public function setDescripcion(?string $descripcion): self
{
$this->descripcion = $descripcion;
return $this;
}
public function getCreditos(): ?int
{
return $this->creditos;
}
public function setCreditos(?int $creditos): self
{
$this->creditos = $creditos;
return $this;
}
public function getPrecio(): ?string
{
return $this->precio;
}
public function setPrecio(?string $precio): self
{
$this->precio = $precio;
return $this;
}
}