<?php
namespace App\Entity;
use App\Repository\ReportTypeRepository;
use App\Traits\UuidEntityTrait;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=ReportTypeRepository::class)
*/
class ReportType
{
use UuidEntityTrait;
/**
* @ORM\Column(type="string", length=255)
*/
#[Groups(['index', 'orderHistory'])]
private ?string $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
#[Groups(['index'])]
private ?string $description;
private ?float $price = null;
public function __toString(): string
{
return $this->name ?? ' ';
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
}