11<?php
22/**
3- * Copyright (c) 2016 CardGate B.V.
3+ * Copyright (c) 2018 CardGate B.V.
44 *
55 * Permission is hereby granted, free of charge, to any person obtaining a copy
66 * of this software and associated documentation files (the "Software"), to deal
3232 *
3333 * @method Address setFirstName( string $sFirstName_ ) Sets the first name.
3434 * @method string getFirstName() Returns the first name.
35- * @method boolean hasFirstName() Checks for existence of first name.
35+ * @method bool hasFirstName() Checks for existence of first name.
3636 * @method Address unsetFirstName() Unsets the first name.
3737 *
3838 * @method Address setInitials( string $sInitials_ ) Sets the initials.
3939 * @method string getInitials() Returns the initials.
40- * @method boolean hasInitials() Checks for the existence of initials.
40+ * @method bool hasInitials() Checks for the existence of initials.
4141 * @method Address unsetInitials() Unsets the initials.
4242 *
4343 * @method Address setLastName( string $sLastName_ ) Sets the last name.
4444 * @method string getLastName() Returns the last name.
45- * @method boolean hasLastName() Checks for the existence of last name.
45+ * @method bool hasLastName() Checks for the existence of last name.
4646 * @method Address unsetLastName() Unsets the last name.
4747 *
4848 * @method string getGender() Returns the gender.
49- * @method boolean hasGender() Checks for the existence of gender.
49+ * @method bool hasGender() Checks for the existence of gender.
5050 * @method Address unsetGender() Unsets the gender.
5151 *
5252 * @method string getDayOfBirth() Returns the day of birth.
53- * @method boolean hasDayOfBirth() Checks for existence of day of birth.
53+ * @method bool hasDayOfBirth() Checks for existence of day of birth.
5454 * @method Address unsetDayOfBirth() Unsets the day of birth.
5555 *
5656 * @method Address setCompany( string $sCompany_ ) Sets the company.
5757 * @method string getCompany() Returns the company.
58- * @method boolean hasCompany() Checks for the existence of company.
58+ * @method bool hasCompany() Checks for the existence of company.
5959 * @method Address unsetCompany() Unsets the company.
6060 *
6161 * @method Address setAddress( string $sAddress_ ) Sets the address.
6262 * @method string getAddress() Returns the address.
63- * @method boolean hasAddress() Checks for the existence of address.
63+ * @method bool hasAddress() Checks for the existence of address.
6464 * @method Address unsetAddress() Unsets the address.
6565 *
6666 * @method Address setCity( string $sCity_ ) Sets the city.
6767 * @method string getCity() Returns the city.
68- * @method boolean hasCity() Checks for the existence of city.
68+ * @method bool hasCity() Checks for the existence of city.
6969 * @method Address unsetCity() Unsets the city.
7070 *
7171 * @method Address setState( string $sState_ ) Sets the state.
7272 * @method string getState() Returns the state.
73- * @method boolean hasState() Checks for the existence of state.
73+ * @method bool hasState() Checks for the existence of state.
7474 * @method Address unsetState() Unsets the state.
7575 *
7676 * @method Address setZipCode( string $sZipCode_ ) Sets the zipcode.
7777 * @method string getZipCode() Returns the zipcode.
78- * @method boolean hasZipCode() Checks for existence of zipcode.
78+ * @method bool hasZipCode() Checks for existence of zipcode.
7979 * @method Address unsetZipCode() Unsets the zipcode.
8080 *
8181 * @method string getCountry() Returns the country.
82- * @method boolean hasCountry() Checks for existence of country.
82+ * @method bool hasCountry() Checks for existence of country.
8383 * @method Address unsetCountry() Unsets the country.
8484 */
8585 final class Address extends Entity {
@@ -89,22 +89,22 @@ final class Address extends Entity {
8989 * @internal The methods these fields expose are configured in the class phpdoc.
9090 */
9191 static $ _aFields = [
92- 'FirstName ' => 'firstname ' ,
93- 'Initials ' => 'initials ' ,
94- 'LastName ' => 'lastname ' ,
95- 'Gender ' => 'gender ' ,
96- 'DayOfBirth ' => 'dob ' ,
97- 'Company ' => 'company ' ,
98- 'Address ' => 'address ' ,
99- 'City ' => 'city ' ,
100- 'State ' => 'state ' ,
101- 'ZipCode ' => 'zipcode ' ,
102- 'Country ' => 'country_id '
92+ 'FirstName ' => 'firstname ' ,
93+ 'Initials ' => 'initials ' ,
94+ 'LastName ' => 'lastname ' ,
95+ 'Gender ' => 'gender ' ,
96+ 'DayOfBirth ' => 'dob ' ,
97+ 'Company ' => 'company ' ,
98+ 'Address ' => 'address ' ,
99+ 'City ' => 'city ' ,
100+ 'State ' => 'state ' ,
101+ 'ZipCode ' => 'zipcode ' ,
102+ 'Country ' => 'country_id '
103103 ];
104104
105105 /**
106- * Set's the gender.
107- * @param string $sGender The gender to set.
106+ * Sets the gender.
107+ * @param string $sGender_ The gender to set.
108108 * @return Address Returns this, makes the call chainable.
109109 * @throws Exception
110110 * @access public
@@ -121,7 +121,7 @@ function setGender( $sGender_ ) {
121121 }
122122
123123 /**
124- * Set's the day of birth.
124+ * Sets the day of birth.
125125 * @param string $sDayOfBirth_ The day of birth to set.
126126 * @return Address Returns this, makes the call chainable.
127127 * @throws Exception
@@ -139,7 +139,7 @@ function setDayOfBirth( $sDayOfBirth_ ) {
139139 }
140140
141141 /**
142- * Set's the country.
142+ * Sets the country.
143143 * @param string $sCountry_ The country to set (ISO 3166-1 alpha-2).
144144 * @return Address Returns this, makes the call chainable.
145145 * @throws Exception
0 commit comments