Address
class Address extends Address implements PrimaryKeyInterface, Serializable
Class Address Represent the address for user
Properties
| protected bool | $active | Indicates if address is active(used when address can't be deleted) | from Address |
| protected string | $firstName | First name of address owner | from Address |
| protected string | $lastName | Last name of address owner | from Address |
| protected array|string | $phoneNumber | Phone number of address owner | from Address |
| protected string | $company | Name of company of address owner | from Address |
| protected User | $user | Address owner | from Address |
| protected string | $country | Address country | from Address |
| protected string | $township | Address township | from Address |
| protected string | $street | Address street | from Address |
| protected string | $streetNumber | Address street number | from Address |
| protected string | $apartmentNumber | Appartment number | from Address |
| protected string | $floorNumber | Floor number | from Address |
| protected string | $city | Address city | from Address |
| protected string | $postcode | Address postcode | from Address |
| protected string | Email of address owner | from Address | |
| protected DateTime | $createdAt | Date when address was created | from Address |
| protected DateTime | $updatedAt | Date when address was last updated | from Address |
| protected string | $erpCode | Unique identifier for address. Used for storing address's erp code | from Address |
| protected bool | $shipToOtherAddress | Indicates if shipping address is different then billing address | from Address |
| protected int | $id |
Methods
integer
getId()
Get id
string
toString()
No description
string
serialize()
(PHP 5 >= 5.1.0)
String representation of object
void
unserialize(string $serialized)
(PHP 5 >= 5.1.0)
Constructs the object
handleCyrillicLetters()
No description
Details
in Address at line 238
string
getFirstName()
Get first name.
in Address at line 246
setFirstName(string $firstName)
Set first name.
in Address at line 256
string
getLastName()
Get last name.
in Address at line 264
setLastName(string $lastName)
Set last name.
in Address at line 274
string
getFullName()
in Address at line 282
string
getPhoneNumber()
Get phone number.
in Address at line 290
setPhoneNumber(string $phoneNumber)
Set phone number.
in Address at line 300
string
getCompany()
Get company.
in Address at line 308
setCompany(string $company)
Set company.
in Address at line 318
string|null
getCountry()
Get country.
in Address at line 326
setCountry(string $country = null)
Set country.
in Address at line 336
string
getTownship()
in Address at line 356
string
getStreet()
Get street.
in Address at line 364
setStreet(string $street)
Set street.
in Address at line 374
string
getCity()
Get city.
in Address at line 382
setCity(string $city)
Set city.
in Address at line 392
string
getPostcode()
Get postcode.
in Address at line 400
setPostcode(string $postcode)
Set postcode.
in Address at line 410
mixed
getCreatedAt()
in Address at line 428
mixed
getUpdatedAt()
in Address at line 446
string
getStreetNumber()
in Address at line 454
setStreetNumber(string $streetNumber)
in Address at line 464
mixed
getUser()
in Address at line 484
string
getEmail()
in Address at line 504
string
getErpCode()
in Address at line 524
bool
isActive()
in Address at line 544
bool
isShipToOtherAddress()
in Address at line 564
string
getApartmentNumber()
in Address at line 584
string
getFloorNumber()
at line 45
integer
getId()
Get id
at line 53
string
toString()
at line 73
string
serialize()
(PHP 5 >= 5.1.0)
String representation of object
at line 105
void
unserialize(string $serialized)
(PHP 5 >= 5.1.0)
Constructs the object