src/Entity/Vacancies.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\VacanciesRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassVacanciesRepository::class)]
  7. #[ApiResource]
  8. class Vacancies
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $name null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getName(): ?string
  21.     {
  22.         return $this->name;
  23.     }
  24.     public function setName(?string $name): self
  25.     {
  26.         $this->name $name;
  27.         return $this;
  28.     }
  29. }