for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\AltaPay\Response\Partial\Transaction\CustomerInfo;
use Loevgaard\AltaPay\Response\Partial\PartialResponse;
class BillingAddress extends PartialResponse
{
/**
* @var string
*/
private $firstName;
private $lastName;
private $address;
private $city;
private $postalCode;
private $country;
* @return string
public function getFirstName() : string
return $this->firstName;
}
public function getLastName() : string
return $this->lastName;
public function getAddress() : string
return $this->address;
public function getCity() : string
return $this->city;
public function getPostalCode() : string
return $this->postalCode;
public function getCountry() : string
return $this->country;
protected function init()
$this->firstName = (string)$this->xmlDoc->Firstname;
$this->lastName = (string)$this->xmlDoc->Lastname;
$this->address = (string)$this->xmlDoc->Address;
$this->city = (string)$this->xmlDoc->City;
$this->postalCode = (string)$this->xmlDoc->PostalCode;
$this->country = (string)$this->xmlDoc->Country;