diff --git a/api/src/Entity/Greeting.php b/api/src/Entity/Greeting.php deleted file mode 100644 index cdfd3e98f4edab202c01b969318f80236f455b3b..0000000000000000000000000000000000000000 --- 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 0000000000000000000000000000000000000000..2edc1bdcecfe562de32bc819ffd09f54e2198f66 --- /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 0000000000000000000000000000000000000000..0aba43108479ec4e0116a10aaf9f9a68b263241d --- /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() + ; + } + */ +}