src/Entity/Adress.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\AdressRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\UX\Turbo\Attribute\Broadcast;
  7. #[ORM\Embeddable]
  8. #[Broadcast]
  9. #[ApiResource]
  10. class Adress
  11. {
  12.     #[ORM\Column(length255)]
  13.     private ?string $street null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $city null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $postalCode null;
  18.     public function getStreet(): ?string
  19.     {
  20.         return $this->street;
  21.     }
  22.     public function setStreet(string $street): self
  23.     {
  24.         $this->street $street;
  25.         return $this;
  26.     }
  27.     public function getCity(): ?string
  28.     {
  29.         return $this->city;
  30.     }
  31.     public function setCity(string $city): self
  32.     {
  33.         $this->city $city;
  34.         return $this;
  35.     }
  36.     public function getPostalCode(): ?string
  37.     {
  38.         return $this->postalCode;
  39.     }
  40.     public function setPostalCode(string $postalCode): self
  41.     {
  42.         $this->postalCode $postalCode;
  43.         return $this;
  44.     }
  45. }