src/Entity/Coordinates.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CoordinatesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassCoordinatesRepository::class)]
  7. class Coordinates
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     public function getId(): ?int
  16.     {
  17.         return $this->id;
  18.     }
  19.     public function getName(): ?string
  20.     {
  21.         return $this->name;
  22.     }
  23.     public function setName(string $name): self
  24.     {
  25.         $this->name $name;
  26.         return $this;
  27.     }
  28.     public function __toString()
  29.     {
  30.         return $this->name;
  31.     }
  32. }