src/Entity/CustomService.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomServiceRepository;
  4. use App\Repository\ExtraRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassCustomServiceRepository::class)]
  8. class CustomService extends  Product
  9. {
  10.     #[ORM\Column(length255)]
  11.     private ?string $name null;
  12.     public function getName(): ?string
  13.     {
  14.         return $this->name;
  15.     }
  16.     public function setName(string $name): static
  17.     {
  18.         $this->name $name;
  19.         return $this;
  20.     }
  21.     public function __toString(): string
  22.     {
  23.         return (string) $this->name;
  24.     }
  25.     public function getClass()  : string {
  26.         return "CustomService";
  27.     }
  28. }