From e070b98dc3a810bb5419ce0b3ea8668fa5070c92 Mon Sep 17 00:00:00 2001 From: alanpilloud Date: Sat, 28 Dec 2019 16:23:39 +0100 Subject: [PATCH] add types and subtypes --- src/PublimmoPro/Subtypes.php | 85 ++++++++++++++++++++++++++++++++++++ src/PublimmoPro/Types.php | 24 ++++++++++ 2 files changed, 109 insertions(+) create mode 100644 src/PublimmoPro/Subtypes.php create mode 100644 src/PublimmoPro/Types.php diff --git a/src/PublimmoPro/Subtypes.php b/src/PublimmoPro/Subtypes.php new file mode 100644 index 0000000..d138dd7 --- /dev/null +++ b/src/PublimmoPro/Subtypes.php @@ -0,0 +1,85 @@ + 0, + 'studio' => 1, + 'loft' => 2, + 'attique' => 3, + 'duplex' => 4, + 'meuble' => 5, + 'terrasse' => 6, + ]; + + /** @var array BUILDING Internal number for object of subtype building */ + public const BUILDING = [ + 'mixte' => 0, + 'industriel' => 1, + 'commercial' => 2, + 'locatif' => 3, + ]; + + /** @var array COMMERCIAL Internal number for object of subtype commercial */ + public const COMMERCIAL = [ + 'administratif' => 0, + 'arcade' => 1, + 'depot' => 2, + 'artisanal' => 3, + 'industriel' => 4, + 'restaurant' => 5, + 'halle' => 6, + 'garage' => 7, + 'hotel' => 8, + 'aremettre' => 9, + 'cafe' => 10, + 'kiosk' => 11, + 'viticole' => 12, + ]; + + /** @var array HOUSE Internal number for object of subtype house */ + public const HOUSE = [ + 'villaindividuelle' => 0, + 'villajumelle' => 1, + 'villacontigue' => 2, + 'villamitoyenne' => 3, + 'maisonmultiapp' => 4, + 'proprietemaitre' => 5, + 'maisonvillage' => 6, + 'ferme' => 7, + 'corpsferme' => 8, + 'chateau' => 9, + 'chalet' => 10, + 'villa' => 11, + 'maison' => 12, + 'grange' => 13, + 'terrasse' => 14, + ]; + + /** @var array LAND Internal number for object of subtype land */ + public const LAND = [ + 'villa' => 0, + 'immeuble' => 1, + 'industriel' => 2, + 'agricole' => 3, + 'commercial' => 4, + ]; + + /** @var array PARKING Internal number for object of subtype parking */ + public const PARKING = [ + 'place_ouverte' => 0, + 'place_couverte' => 1, + 'garage_individuel' => 2, + 'garage_double' => 3, + 'place_souterraine' => 4, + 'halle_bateaux' => 6, + 'place_exterieure_bateaux' => 7, + 'halle_motos' => 8, + 'place_exterieure_motos' => 9, + 'boxe_ecurie' => 10, + 'place_bateau_balisee' => 11, + ]; +} + diff --git a/src/PublimmoPro/Types.php b/src/PublimmoPro/Types.php new file mode 100644 index 0000000..88d43a4 --- /dev/null +++ b/src/PublimmoPro/Types.php @@ -0,0 +1,24 @@ +