Skip to content

Commit 308d5ae

Browse files
svrdlicNyholm
authored andcommitted
Adding support for subpremise for GoogleMaps (#657)
* Adding support for subpremise for GoogleMaps * cs * cs * added functions for property overloading and test for subpremise * changed field type * cs * cs * cs * added cached response
1 parent ac75728 commit 308d5ae

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Model/AddressBuilder.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,36 @@ public function setTimezone($timezone)
272272

273273
return $this;
274274
}
275+
276+
/**
277+
* @param $name
278+
* @param $value
279+
*
280+
* @return $this
281+
*/
282+
public function setValue($name, $value)
283+
{
284+
$this->$name = $value;
285+
286+
return $this;
287+
}
288+
289+
/**
290+
* @param $name
291+
* @param null $default
292+
*/
293+
public function getValue($name, $default = null)
294+
{
295+
return $this->$name ?? $default;
296+
}
297+
298+
/**
299+
* @param $name
300+
*
301+
* @return bool
302+
*/
303+
public function hasValue($name)
304+
{
305+
return property_exists($this, $name);
306+
}
275307
}

0 commit comments

Comments
 (0)