src/Entity/ContactSubjectType.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactSubjectTypeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassContactSubjectTypeRepository::class)]
  6. class ContactSubjectType
  7. {
  8.     public const PROSPECT 'prospect';
  9.     public const DEMANDE_DEVISE 'demande_devise';
  10.     public const JOB 'job';
  11.     public const OTHER 'other';
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $name;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $slug;
  20.     public function __toString(): string
  21.     {
  22.         return $this->name;
  23.     }
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getName(): ?string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(string $name): self
  33.     {
  34.         $this->name $name;
  35.         return $this;
  36.     }
  37.     public function getSlug(): ?string
  38.     {
  39.         return $this->slug;
  40.     }
  41.     public function setSlug(string $slug): self
  42.     {
  43.         $this->slug $slug;
  44.         return $this;
  45.     }
  46. }