<?phpnamespace 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(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255) */ private $contac; /** * @ORM\Column(type="string", length=255) */ private $adresse; /** * @ORM\Column(type="text", nullable=true) */ private $infos; /** * @ORM\ManyToOne(targetEntity=UserPlatform::class) * @ORM\JoinColumn(nullable=false) */ private $user; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getContac(): ?string { return $this->contac; } public function setContac(string $contac): self { $this->contac = $contac; return $this; } public function getAdresse(): ?string { return $this->adresse; } public function setAdresse(string $adresse): self { $this->adresse = $adresse; return $this; } public function getInfos(): ?string { return $this->infos; } public function setInfos(?string $infos): self { $this->infos = $infos; return $this; } public function getUser(): ?UserPlatform { return $this->user; } public function setUser(?UserPlatform $user): self { $this->user = $user; return $this; }}