class Address implements Arrayable, JsonSerializable (View source)

Methods

__construct(string $email, string $name)

Constructor.

string
email()

Get the address's email.

string
name()

Get the address's name.

array
toArray()

Get the array representation of the address.

array
jsonSerialize()

Get the JSON representation of the address.

Details

__construct(string $email, string $name)

Constructor.

Parameters

string $email
string $name

string email()

Get the address's email.

Return Value

string

string name()

Get the address's name.

Return Value

string

array toArray()

Get the array representation of the address.

Return Value

array

array jsonSerialize()

Get the JSON representation of the address.

Return Value

array