src/Entity/ReportType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReportTypeRepository;
  4. use App\Traits\UuidEntityTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ReportTypeRepository::class)
  9.  */
  10. class ReportType
  11. {
  12.     use UuidEntityTrait;
  13.     /**
  14.      * @ORM\Column(type="string", length=255)
  15.      */
  16.     #[Groups(['index''orderHistory'])]
  17.     private ?string $name;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     #[Groups(['index'])]
  22.     private ?string $description;
  23.     private ?float $price null;
  24.     public function __toString(): string
  25.     {
  26.         return $this->name ?? ' ';
  27.     }
  28.     public function getPrice(): ?float
  29.     {
  30.         return $this->price;
  31.     }
  32.     public function setPrice(?float $price): self
  33.     {
  34.         $this->price $price;
  35.         return $this;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getDescription(): ?string
  47.     {
  48.         return $this->description;
  49.     }
  50.     public function setDescription(?string $description): self
  51.     {
  52.         $this->description $description;
  53.         return $this;
  54.     }
  55. }