From a013e4707c633cad119c3d0f5ea68149cf78ee0c Mon Sep 17 00:00:00 2001 From: dddobriak Date: Tue, 24 Oct 2023 18:25:10 +0300 Subject: [PATCH 1/3] add restrict_value param --- src/DaDataAddress.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DaDataAddress.php b/src/DaDataAddress.php index bac9f54..bc78ccd 100644 --- a/src/DaDataAddress.php +++ b/src/DaDataAddress.php @@ -41,6 +41,7 @@ public function standardization(string $address) : array * @param array $locations_boost * @param array $from_bound * @param array $to_bound + * @param bool $restrict_value * @return array * @throws \Exception */ @@ -52,7 +53,8 @@ public function prompt( array $locations_geo = [], array $locations_boost = [], array $from_bound = [], - array $to_bound = [] + array $to_bound = [], + bool $restrict_value = true, ) : array { @@ -65,6 +67,7 @@ public function prompt( 'locations_boost' => $locations_boost, 'from_bound' => $from_bound, 'to_bound' => $to_bound, + 'to_bound' => $restrict_value, ]); } From 2a172ad44c1bf18e1cea7725414bfd6f4260d973 Mon Sep 17 00:00:00 2001 From: dddobriak Date: Tue, 24 Oct 2023 18:25:50 +0300 Subject: [PATCH 2/3] add restrict_value_param --- src/DaDataAddress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DaDataAddress.php b/src/DaDataAddress.php index bc78ccd..adb5b7b 100644 --- a/src/DaDataAddress.php +++ b/src/DaDataAddress.php @@ -67,7 +67,7 @@ public function prompt( 'locations_boost' => $locations_boost, 'from_bound' => $from_bound, 'to_bound' => $to_bound, - 'to_bound' => $restrict_value, + 'restrict_value' => $restrict_value, ]); } From a3bb63bd6df7218829a97fc82c37fa4031cfb0be Mon Sep 17 00:00:00 2001 From: dddobriak Date: Tue, 24 Oct 2023 18:31:06 +0300 Subject: [PATCH 3/3] style edits --- src/DaDataAddress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DaDataAddress.php b/src/DaDataAddress.php index adb5b7b..dbd3777 100644 --- a/src/DaDataAddress.php +++ b/src/DaDataAddress.php @@ -67,7 +67,7 @@ public function prompt( 'locations_boost' => $locations_boost, 'from_bound' => $from_bound, 'to_bound' => $to_bound, - 'restrict_value' => $restrict_value, + 'restrict_value' => $restrict_value, ]); }