<?php
namespace App\Entity;
use App\Repository\PercentOffRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PercentOffRepository::class)
*/
class PercentOff
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
public function __toString()
{
return $this->content;
}
/**
* @ORM\Column(type="string")
*/
private $content;
/**
* @ORM\Column(type="float")
*/
private $valor;
public function getId(): ?int
{
return $this->id;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(float $content): self
{
$this->content = $content;
return $this;
}
public function getValor(): ?float
{
return $this->valor;
}
public function setValor(float $valor): self
{
$this->valor = $valor;
return $this;
}
}