define legacy functions for Address

This commit is contained in:
nobohan 2021-04-30 14:15:20 +02:00
parent 91860afd80
commit e9d142f3e8

View File

@ -154,7 +154,7 @@ class Address
} }
/** /**
* Set streetAddress1 * Set streetAddress1 (legacy function)
* *
* @param string $streetAddress1 * @param string $streetAddress1
* *
@ -162,13 +162,13 @@ class Address
*/ */
public function setStreetAddress1($streetAddress1) public function setStreetAddress1($streetAddress1)
{ {
$this->streetAddress1 = $streetAddress1 === NULL ? '' : $streetAddress1; $this->street = $streetAddress1 === NULL ? '' : $streetAddress1;
return $this; return $this;
} }
/** /**
* Get streetAddress1 * Get streetAddress1 (legacy function)
* *
* @return string * @return string
*/ */
@ -178,7 +178,7 @@ class Address
} }
/** /**
* Set streetAddress2 * Set streetAddress2 (legacy function)
* *
* @param string $streetAddress2 * @param string $streetAddress2
* *
@ -186,13 +186,13 @@ class Address
*/ */
public function setStreetAddress2($streetAddress2) public function setStreetAddress2($streetAddress2)
{ {
$this->streetAddress2 = $streetAddress2 === NULL ? '' : $streetAddress2; $this->streetNumber = $streetAddress2 === NULL ? '' : $streetAddress2;
return $this; return $this;
} }
/** /**
* Get streetAddress2 * Get streetAddress2 (legacy function)
* *
* @return string * @return string
*/ */