Skip to content

Commit

Permalink
More address property name normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Mar 11, 2021
1 parent 1d35371 commit bfad021
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
36 changes: 18 additions & 18 deletions src/Models/Response/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class Address implements AddressContract, \JsonSerializable {
/**
* @var string
*/
public $city;
public $addressLocality;

/**
* @var string
*/
public $stateProvince;
public $addressRegion;

/**
* @var string
Expand All @@ -67,7 +67,7 @@ class Address implements AddressContract, \JsonSerializable {
/**
* @var Country
*/
public $country;
public $iso;


/**
Expand Down Expand Up @@ -153,33 +153,33 @@ public function setAddress2($address2)
/**
* @return string
*/
public function getCity()
public function getAddressLocality()
{
return $this->city;
return $this->addressLocality;
}

/**
* @param string $city
* @param string $addressLocality
*/
public function setCity($city)
public function setAddressLocality($addressLocality)
{
$this->city = $city;
$this->addressLocality = $addressLocality;
}

/**
* @return string
*/
public function getStateProvince()
public function getAddressRegion()
{
return $this->stateProvince;
return $this->addressRegion;
}

/**
* @param string $stateProvince
* @param string $addressRegion
*/
public function setStateProvince($stateProvince)
public function setAddressRegion($addressRegion)
{
$this->stateProvince = $stateProvince;
$this->addressRegion = $addressRegion;
}

/**
Expand Down Expand Up @@ -249,17 +249,17 @@ public function setSubdivision($subdivision)
/**
* @return Country
*/
public function getCountry()
public function getIso()
{
return $this->country;
return $this->iso;
}

/**
* @param Country $country
* @param Country $iso
*/
public function setCountry($country)
public function setIso($iso)
{
$this->country = $country;
$this->iso = $iso;
}

}
18 changes: 9 additions & 9 deletions src/Models/Response/Contracts/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ public function setAddress2($address2);
/**
* @return string
*/
public function getCity();
public function getAddressRegion();

/**
* @param string $city
* @param string $addressRegion
*/
public function setCity($city);
public function setAddressRegion($addressRegion);

/**
* @return string
*/
public function getStateProvince();
public function getAddressLocality();

/**
* @param string $stateProvince
* @param string $addressLocality
*/
public function setStateProvince($stateProvince);
public function setAddressLocality($addressLocality);

/**
* @return string
Expand Down Expand Up @@ -117,11 +117,11 @@ public function setSubdivision($subdivision);
/**
* @return Country
*/
public function getCountry();
public function getIso();

/**
* @param Country $country
* @param Country $iso
*/
public function setCountry($country);
public function setIso($iso);

}

0 comments on commit bfad021

Please sign in to comment.