<?php
namespace App\Entity;
use App\Repository\MagasinRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MagasinRepository::class)]
class Magasin
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $code_client = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $raison_social = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $prenom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom = null;
#[ORM\Column(nullable: true)]
private ?int $code_postal = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $ville = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pays = null;
#[ORM\Column(nullable: true)]
private ?string $telephone = null;
#[ORM\OneToOne(mappedBy: 'magasin', cascade: ['persist', 'remove'])]
private ?Project $project = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $adresse = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $adresse2 = null;
#[ORM\ManyToOne(inversedBy: 'magasins')]
#[ORM\JoinColumn(nullable: false)]
private ?Groupement $groupement = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $client_facture = null;
public function __construct()
{
}
public function getId(): ?int
{
return $this->id;
}
public function getCodeClient(): ?string
{
return $this->code_client;
}
public function setCodeClient(?string $code_client): static
{
$this->code_client = $code_client;
return $this;
}
public function getRaisonSocial(): ?string
{
return $this->raison_social;
}
public function setRaisonSocial(?string $raison_social): static
{
$this->raison_social = $raison_social;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): static
{
$this->prenom = $prenom;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): static
{
$this->nom = $nom;
return $this;
}
public function getCodePostal(): ?int
{
return $this->code_postal;
}
public function setCodePostal(?int $code_postal): static
{
$this->code_postal = $code_postal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(?string $ville): static
{
$this->ville = $ville;
return $this;
}
public function getPays(): ?string
{
return $this->pays;
}
public function setPays(?string $pays): static
{
$this->pays = $pays;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): static
{
$this->telephone = $telephone;
return $this;
}
public function getProject(): ?Project
{
return $this->project;
}
public function setProject(?Project $project): static
{
// unset the owning side of the relation if necessary
if ($project === null && $this->project !== null) {
$this->project->setMagasin(null);
}
// set the owning side of the relation if necessary
if ($project !== null && $project->getMagasin() !== $this) {
$project->setMagasin($this);
}
$this->project = $project;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): static
{
$this->email = $email;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): static
{
$this->adresse = $adresse;
return $this;
}
public function getAdresse2(): ?string
{
return $this->adresse2;
}
public function setAdresse2(?string $adresse2): static
{
$this->adresse2 = $adresse2;
return $this;
}
public function getGroupement(): ?Groupement
{
return $this->groupement;
}
public function setGroupement(?Groupement $groupement): static
{
$this->groupement = $groupement;
return $this;
}
public function getClientFacture(): ?string
{
return $this->client_facture;
}
public function setClientFacture(?string $client_facture): static
{
$this->client_facture = $client_facture;
return $this;
}
}