<?php
namespace App\Entity;
use App\Repository\ShopRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ShopRepository::class)]
class Shop
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $city = null;
#[ORM\Column(length: 255)]
private ?string $secteur = null;
#[ORM\Column(length: 255)]
private ?string $address = null;
#[ORM\Column(length: 255)]
private ?string $longitude = null;
#[ORM\Column(length: 255)]
private ?string $latitude = null;
#[ORM\Column(length: 255)]
private ?string $placeId = null;
#[ORM\ManyToOne(targetEntity: Company::class, cascade: ['persist'], inversedBy: 'shops')]
private ?Company $company;
#[ORM\Column(length: 255, nullable: true)]
private ?string $postcode = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getSecteur(): ?string
{
return $this->secteur;
}
public function setSecteur(string $secteur): static
{
$this->secteur = $secteur;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): static
{
$this->address = $address;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(string $longitude): static
{
$this->longitude = $longitude;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(string $latitude): static
{
$this->latitude = $latitude;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): static
{
$this->company = $company;
return $this;
}
public function getPlaceId(): ?string
{
return $this->placeId;
}
public function setPlaceId(string $placeId): static
{
$this->placeId = $placeId;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(string $city): static
{
$this->city = $city;
return $this;
}
public function getPostcode(): ?string
{
return $this->postcode;
}
public function setPostcode(?string $postcode): static
{
$this->postcode = $postcode;
return $this;
}
}