src/Entity/Workforce.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\Get;
  4. use ApiPlatform\Metadata\Put;
  5. use ApiPlatform\Metadata\Post;
  6. use ApiPlatform\Metadata\Delete;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use ApiPlatform\Metadata\ApiResource;
  9. use ApiPlatform\Metadata\GetCollection;
  10. use App\Repository\WorkforceRepository;
  11. use Symfony\Component\Serializer\Annotation\Groups;
  12. #[ORM\Entity(repositoryClassWorkforceRepository::class)]
  13. class Workforce
  14. {
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $libelle null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getLibelle(): ?string
  26.     {
  27.         return $this->libelle;
  28.     }
  29.     public function setLibelle(string $libelle): self
  30.     {
  31.         $this->libelle $libelle;
  32.         return $this;
  33.     }
  34.     public function __toString()
  35.     {
  36.         return $this->libelle;
  37.     }
  38. }