src/Entity/Shop.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ShopRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassShopRepository::class)]
  6. class Shop
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $city null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $secteur null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $address null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $longitude null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $latitude null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $placeId null;
  26.     #[ORM\ManyToOne(targetEntityCompany::class, cascade: ['persist'], inversedBy'shops')]
  27.     private ?Company $company;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $postcode null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getName(): ?string
  35.     {
  36.         return $this->name;
  37.     }
  38.     public function setName(string $name): static
  39.     {
  40.         $this->name $name;
  41.         return $this;
  42.     }
  43.     public function getSecteur(): ?string
  44.     {
  45.         return $this->secteur;
  46.     }
  47.     public function setSecteur(string $secteur): static
  48.     {
  49.         $this->secteur $secteur;
  50.         return $this;
  51.     }
  52.     public function getAddress(): ?string
  53.     {
  54.         return $this->address;
  55.     }
  56.     public function setAddress(string $address): static
  57.     {
  58.         $this->address $address;
  59.         return $this;
  60.     }
  61.     public function getLongitude(): ?string
  62.     {
  63.         return $this->longitude;
  64.     }
  65.     public function setLongitude(string $longitude): static
  66.     {
  67.         $this->longitude $longitude;
  68.         return $this;
  69.     }
  70.     public function getLatitude(): ?string
  71.     {
  72.         return $this->latitude;
  73.     }
  74.     public function setLatitude(string $latitude): static
  75.     {
  76.         $this->latitude $latitude;
  77.         return $this;
  78.     }
  79.     public function getCompany(): ?Company
  80.     {
  81.         return $this->company;
  82.     }
  83.     public function setCompany(?Company $company): static
  84.     {
  85.         $this->company $company;
  86.         return $this;
  87.     }
  88.     public function getPlaceId(): ?string
  89.     {
  90.         return $this->placeId;
  91.     }
  92.     public function setPlaceId(string $placeId): static
  93.     {
  94.         $this->placeId $placeId;
  95.         return $this;
  96.     }
  97.     public function getCity(): ?string
  98.     {
  99.         return $this->city;
  100.     }
  101.     public function setCity(string $city): static
  102.     {
  103.         $this->city $city;
  104.         return $this;
  105.     }
  106.     public function getPostcode(): ?string
  107.     {
  108.         return $this->postcode;
  109.     }
  110.     public function setPostcode(?string $postcode): static
  111.     {
  112.         $this->postcode $postcode;
  113.         return $this;
  114.     }
  115. }