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 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

string
getFirstName()

Get first name.

from Address
setFirstName(string $firstName)

Set first name.

from Address
string
getLastName()

Get last name.

from Address
setLastName(string $lastName)

Set last name.

from Address
string
getFullName()

No description

from Address
string
getPhoneNumber()

Get phone number.

from Address
setPhoneNumber(string $phoneNumber)

Set phone number.

from Address
string
getCompany()

Get company.

from Address
setCompany(string $company)

Set company.

from Address
string|null
getCountry()

Get country.

from Address
setCountry(string $country = null)

Set country.

from Address
string
getTownship()

No description

from Address
setTownship(string $township)

No description

from Address
string
getStreet()

Get street.

from Address
setStreet(string $street)

Set street.

from Address
string
getCity()

Get city.

from Address
setCity(string $city)

Set city.

from Address
string
getPostcode()

Get postcode.

from Address
setPostcode(string $postcode)

Set postcode.

from Address
mixed
getCreatedAt()

No description

from Address
mixed
setCreatedAt(DateTime $createdAt)

No description

from Address
mixed
getUpdatedAt()

No description

from Address
mixed
setUpdatedAt(DateTime $updatedAt)

No description

from Address
string
getStreetNumber()

No description

from Address
setStreetNumber(string $streetNumber)

No description

from Address
mixed
getUser()

No description

from Address
setUser(User $user)

No description

from Address
string
getEmail()

No description

from Address
setEmail(string $email)

No description

from Address
string
getErpCode()

No description

from Address
setErpCode(string $erpCode)

No description

from Address
bool
isActive()

No description

from Address
setActive(bool $active)

No description

from Address
bool
isShipToOtherAddress()

No description

from Address
setShipToOtherAddress(bool $shipToOtherAddress)

No description

from Address
string
getApartmentNumber()

No description

from Address
setApartmentNumber(string $apartmentNumber)

No description

from Address
string
getFloorNumber()

No description

from Address
setFloorNumber(string $floorNumber)

No description

from Address
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

setId(int $id)

No description

handleCyrillicLetters()

No description

Details

in Address at line 238
string getFirstName()

Get first name.

Return Value

string

in Address at line 246
setFirstName(string $firstName)

Set first name.

Parameters

string $firstName

in Address at line 256
string getLastName()

Get last name.

Return Value

string

in Address at line 264
setLastName(string $lastName)

Set last name.

Parameters

string $lastName

in Address at line 274
string getFullName()

Return Value

string

in Address at line 282
string getPhoneNumber()

Get phone number.

Return Value

string

in Address at line 290
setPhoneNumber(string $phoneNumber)

Set phone number.

Parameters

string $phoneNumber

in Address at line 300
string getCompany()

Get company.

Return Value

string

in Address at line 308
setCompany(string $company)

Set company.

Parameters

string $company

in Address at line 318
string|null getCountry()

Get country.

Return Value

string|null

in Address at line 326
setCountry(string $country = null)

Set country.

Parameters

string $country

in Address at line 336
string getTownship()

Return Value

string

in Address at line 346
Address setTownship(string $township)

Parameters

string $township

Return Value

Address

in Address at line 356
string getStreet()

Get street.

Return Value

string

in Address at line 364
setStreet(string $street)

Set street.

Parameters

string $street

in Address at line 374
string getCity()

Get city.

Return Value

string

in Address at line 382
setCity(string $city)

Set city.

Parameters

string $city

in Address at line 392
string getPostcode()

Get postcode.

Return Value

string

in Address at line 400
setPostcode(string $postcode)

Set postcode.

Parameters

string $postcode

in Address at line 410
mixed getCreatedAt()

Return Value

mixed

in Address at line 418
mixed setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

mixed

in Address at line 428
mixed getUpdatedAt()

Return Value

mixed

in Address at line 436
mixed setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

mixed

in Address at line 446
string getStreetNumber()

Return Value

string

in Address at line 454
setStreetNumber(string $streetNumber)

Parameters

string $streetNumber

in Address at line 464
mixed getUser()

Return Value

mixed

in Address at line 474
Address setUser(User $user)

Parameters

User $user

Return Value

Address

in Address at line 484
string getEmail()

Return Value

string

in Address at line 494
Address setEmail(string $email)

Parameters

string $email

Return Value

Address

in Address at line 504
string getErpCode()

Return Value

string

in Address at line 514
Address setErpCode(string $erpCode)

Parameters

string $erpCode

Return Value

Address

in Address at line 524
bool isActive()

Return Value

bool

in Address at line 534
Address setActive(bool $active)

Parameters

bool $active

Return Value

Address

in Address at line 544
bool isShipToOtherAddress()

Return Value

bool

in Address at line 554
Address setShipToOtherAddress(bool $shipToOtherAddress)

Parameters

bool $shipToOtherAddress

Return Value

Address

in Address at line 564
string getApartmentNumber()

Return Value

string

in Address at line 574
Address setApartmentNumber(string $apartmentNumber)

Parameters

string $apartmentNumber

Return Value

Address

in Address at line 584
string getFloorNumber()

Return Value

string

in Address at line 594
Address setFloorNumber(string $floorNumber)

Parameters

string $floorNumber

Return Value

Address

at line 45
integer getId()

Get id

Return Value

integer

at line 53
string toString()

Return Value

string

at line 73
string serialize()

(PHP 5 >= 5.1.0)
String representation of object

Return Value

string the string representation of the object or null

at line 105
void unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Parameters

string $serialized The string representation of the object.

Return Value

void

at line 128
Address setId(int $id)

Parameters

int $id

Return Value

Address

at line 139
handleCyrillicLetters()