src/Entity/Magasin.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MagasinRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMagasinRepository::class)]
  6. class Magasin
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255nullabletrue)]
  13.     private ?string $code_client null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $raison_social null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $prenom null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $nom null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?int $code_postal null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $ville null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $pays null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?string $telephone null;
  28.     #[ORM\OneToOne(mappedBy'magasin'cascade: ['persist''remove'])]
  29.     private ?Project $project null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $email null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $adresse null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $adresse2 null;
  36.     #[ORM\ManyToOne(inversedBy'magasins')]
  37.     #[ORM\JoinColumn(nullablefalse)]
  38.     private ?Groupement $groupement null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $client_facture null;
  41.     public function __construct()
  42.     {
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCodeClient(): ?string
  49.     {
  50.         return $this->code_client;
  51.     }
  52.     public function setCodeClient(?string $code_client): static
  53.     {
  54.         $this->code_client $code_client;
  55.         return $this;
  56.     }
  57.     public function getRaisonSocial(): ?string
  58.     {
  59.         return $this->raison_social;
  60.     }
  61.     public function setRaisonSocial(?string $raison_social): static
  62.     {
  63.         $this->raison_social $raison_social;
  64.         return $this;
  65.     }
  66.     public function getPrenom(): ?string
  67.     {
  68.         return $this->prenom;
  69.     }
  70.     public function setPrenom(?string $prenom): static
  71.     {
  72.         $this->prenom $prenom;
  73.         return $this;
  74.     }
  75.     public function getNom(): ?string
  76.     {
  77.         return $this->nom;
  78.     }
  79.     public function setNom(?string $nom): static
  80.     {
  81.         $this->nom $nom;
  82.         return $this;
  83.     }
  84.     public function getCodePostal(): ?int
  85.     {
  86.         return $this->code_postal;
  87.     }
  88.     public function setCodePostal(?int $code_postal): static
  89.     {
  90.         $this->code_postal $code_postal;
  91.         return $this;
  92.     }
  93.     public function getVille(): ?string
  94.     {
  95.         return $this->ville;
  96.     }
  97.     public function setVille(?string $ville): static
  98.     {
  99.         $this->ville $ville;
  100.         return $this;
  101.     }
  102.     public function getPays(): ?string
  103.     {
  104.         return $this->pays;
  105.     }
  106.     public function setPays(?string $pays): static
  107.     {
  108.         $this->pays $pays;
  109.         return $this;
  110.     }
  111.     public function getTelephone(): ?string
  112.     {
  113.         return $this->telephone;
  114.     }
  115.     public function setTelephone(?string $telephone): static
  116.     {
  117.         $this->telephone $telephone;
  118.         return $this;
  119.     }
  120.     public function getProject(): ?Project
  121.     {
  122.         return $this->project;
  123.     }
  124.     public function setProject(?Project $project): static
  125.     {
  126.         // unset the owning side of the relation if necessary
  127.         if ($project === null && $this->project !== null) {
  128.             $this->project->setMagasin(null);
  129.         }
  130.         // set the owning side of the relation if necessary
  131.         if ($project !== null && $project->getMagasin() !== $this) {
  132.             $project->setMagasin($this);
  133.         }
  134.         $this->project $project;
  135.         return $this;
  136.     }
  137.     public function getEmail(): ?string
  138.     {
  139.         return $this->email;
  140.     }
  141.     public function setEmail(?string $email): static
  142.     {
  143.         $this->email $email;
  144.         return $this;
  145.     }
  146.     public function getAdresse(): ?string
  147.     {
  148.         return $this->adresse;
  149.     }
  150.     public function setAdresse(?string $adresse): static
  151.     {
  152.         $this->adresse $adresse;
  153.         return $this;
  154.     }
  155.     public function getAdresse2(): ?string
  156.     {
  157.         return $this->adresse2;
  158.     }
  159.     public function setAdresse2(?string $adresse2): static
  160.     {
  161.         $this->adresse2 $adresse2;
  162.         return $this;
  163.     }
  164.     public function getGroupement(): ?Groupement
  165.     {
  166.         return $this->groupement;
  167.     }
  168.     public function setGroupement(?Groupement $groupement): static
  169.     {
  170.         $this->groupement $groupement;
  171.         return $this;
  172.     }
  173.     public function getClientFacture(): ?string
  174.     {
  175.         return $this->client_facture;
  176.     }
  177.     public function setClientFacture(?string $client_facture): static
  178.     {
  179.         $this->client_facture $client_facture;
  180.         return $this;
  181.     }
  182. }