From b6ad154655dd5413bfdb6505d4d8b593d279fdc9 Mon Sep 17 00:00:00 2001 From: Fawaz IBRAHIM Date: Sat, 28 Dec 2019 14:19:26 +0100 Subject: [PATCH] Creer Entity ValeursFoncieres --- api/src/Entity/Greeting.php | 38 ----- api/src/Entity/ValeursFoncieres.php | 161 ++++++++++++++++++ .../Repository/ValeursFoncieresRepository.php | 50 ++++++ 3 files changed, 211 insertions(+), 38 deletions(-) delete mode 100644 api/src/Entity/Greeting.php create mode 100644 api/src/Entity/ValeursFoncieres.php create mode 100644 api/src/Repository/ValeursFoncieresRepository.php diff --git a/api/src/Entity/Greeting.php b/api/src/Entity/Greeting.php deleted file mode 100644 index cdfd3e9..0000000 --- a/api/src/Entity/Greeting.php +++ /dev/null @@ -1,38 +0,0 @@ -id; - } -} diff --git a/api/src/Entity/ValeursFoncieres.php b/api/src/Entity/ValeursFoncieres.php new file mode 100644 index 0000000..2edc1bd --- /dev/null +++ b/api/src/Entity/ValeursFoncieres.php @@ -0,0 +1,161 @@ +id; + } + + public function getDateMutation(): ?\DateTimeInterface + { + return $this->date_mutation; + } + + public function setDateMutation(\DateTimeInterface $date_mutation): self + { + $this->date_mutation = $date_mutation; + + return $this; + } + + public function getNatureMutation(): ?string + { + return $this->nature_mutation; + } + + public function setNatureMutation(string $nature_mutation): self + { + $this->nature_mutation = $nature_mutation; + + return $this; + } + + public function getValeurFonciere(): ?float + { + return $this->valeur_fonciere; + } + + public function setValeurFonciere(float $valeur_fonciere): self + { + $this->valeur_fonciere = $valeur_fonciere; + + return $this; + } + + public function getCodeCommune(): ?int + { + return $this->code_commune; + } + + public function setCodeCommune(int $code_commune): self + { + $this->code_commune = $code_commune; + + return $this; + } + + public function getCommune(): ?string + { + return $this->commune; + } + + public function setCommune(string $commune): self + { + $this->commune = $commune; + + return $this; + } + + public function getCodeTypeLocal(): ?int + { + return $this->code_type_local; + } + + public function setCodeTypeLocal(int $code_type_local): self + { + $this->code_type_local = $code_type_local; + + return $this; + } + + public function getTypeLocal(): ?string + { + return $this->type_local; + } + + public function setTypeLocal(string $type_local): self + { + $this->type_local = $type_local; + + return $this; + } + + public function getSurfaceReelleBati(): ?float + { + return $this->surface_reelle_bati; + } + + public function setSurfaceReelleBati(float $surface_reelle_bati): self + { + $this->surface_reelle_bati = $surface_reelle_bati; + + return $this; + } +} diff --git a/api/src/Repository/ValeursFoncieresRepository.php b/api/src/Repository/ValeursFoncieresRepository.php new file mode 100644 index 0000000..0aba431 --- /dev/null +++ b/api/src/Repository/ValeursFoncieresRepository.php @@ -0,0 +1,50 @@ +createQueryBuilder('v') + ->andWhere('v.exampleField = :val') + ->setParameter('val', $value) + ->orderBy('v.id', 'ASC') + ->setMaxResults(10) + ->getQuery() + ->getResult() + ; + } + */ + + /* + public function findOneBySomeField($value): ?ValeursFoncieres + { + return $this->createQueryBuilder('v') + ->andWhere('v.exampleField = :val') + ->setParameter('val', $value) + ->getQuery() + ->getOneOrNullResult() + ; + } + */ +} -- GitLab