Buyer
in package
Tags
Table of Contents
Properties
- $address1 : string|null
- $address2 : string|null
- $city : string|null
- $country : string|null
- $email : string|null
- $name : string|null
- $notify : bool|null
- $phone : string|null
- $state : string|null
- $zip : string|null
Methods
- __construct() : mixed
- getAddress1() : string|null
- Gets address 1
- getAddress2() : string|null
- Gets address2
- getCity() : string|null
- Gets city
- getCountry() : string|null
- Gets country
- getEmail() : string|null
- Gets email
- getName() : string|null
- Gets name
- getNotify() : bool|null
- Gets notify
- getPhone() : string|null
- Gets phone
- getState() : string|null
- Gets state
- getZip() : string|null
- Gets zip
- setAddress1() : void
- Sets address1
- setAddress2() : void
- Sets address2
- setCity() : void
- Sets city
- setCountry() : void
- Sets country
- setEmail() : void
- Sets email
- setName() : void
- Sets name
- setNotify() : void
- Sets notify
- setPhone() : void
- Sets phone
- setState() : void
- Sets state
- setZip() : void
- Sets zip
- toArray() : array<string|int, mixed>
- Gets Buyer as array
Properties
$address1
protected
string|null
$address1
= null
$address2
protected
string|null
$address2
= null
$city
protected
string|null
$city
= null
$country
protected
string|null
$country
= null
protected
string|null
$email
= null
$name
protected
string|null
$name
= null
$notify
protected
bool|null
$notify
= null
$phone
protected
string|null
$phone
= null
$state
protected
string|null
$state
= null
$zip
protected
string|null
$zip
= null
Methods
__construct()
public
__construct() : mixed
getAddress1()
Gets address 1
public
getAddress1() : string|null
Return values
string|null —the address1
getAddress2()
Gets address2
public
getAddress2() : string|null
Return values
string|null —the address2
getCity()
Gets city
public
getCity() : string|null
Return values
string|null —the city
getCountry()
Gets country
public
getCountry() : string|null
Return values
string|null —the country
getEmail()
Gets email
public
getEmail() : string|null
Return values
string|null —the email
getName()
Gets name
public
getName() : string|null
Return values
string|null —the name
getNotify()
Gets notify
public
getNotify() : bool|null
Return values
bool|null —notify
getPhone()
Gets phone
public
getPhone() : string|null
Return values
string|null —the phone
getState()
Gets state
public
getState() : string|null
Return values
string|null —the state
getZip()
Gets zip
public
getZip() : string|null
Return values
string|null —the zip
setAddress1()
Sets address1
public
setAddress1(string $address1) : void
Parameters
- $address1 : string
-
the address1
setAddress2()
Sets address2
public
setAddress2(string $address2) : void
Parameters
- $address2 : string
-
the address2
setCity()
Sets city
public
setCity(string $city) : void
Parameters
- $city : string
-
the city
setCountry()
Sets country
public
setCountry(string $country) : void
Parameters
- $country : string
-
the country
setEmail()
Sets email
public
setEmail(string $email) : void
Parameters
- $email : string
-
the email
setName()
Sets name
public
setName(string $name) : void
Parameters
- $name : string
-
the name
setNotify()
Sets notify
public
setNotify(bool $notify) : void
Parameters
- $notify : bool
-
notify
setPhone()
Sets phone
public
setPhone(string $phone) : void
Parameters
- $phone : string
-
the phone
setState()
Sets state
public
setState(string $state) : void
Parameters
- $state : string
-
the state
setZip()
Sets zip
public
setZip(string $zip) : void
Parameters
- $zip : string
-
the zip
toArray()
Gets Buyer as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Buyer as array