\FAA\Obj\GenericAddress

Implement address object

This class provides general interfaces to handle the address specific object operations.

Summary

Methods
Properties
Constants
__construct()
SearchFields()
Name()
Salutation()
$
$
$
$
$
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$

$ :string|null

zipcode The postal code

Type

string|null

$

$ :string|null

town The town name

Type

string|null

$

$ :string|null

street The street and number

Type

string|null

$

$ :string|null

company The company name

Type

string|null

$

$ :string|null

salutation Salutation of contact person

Type

string|null

Methods

__construct()

__construct(\FAA\Obj\Generic\?integer  $id = null,\FAA\Obj\Generic\?string  $language = null,string  $type = 'address')

Construct a new address object

Parameters

\FAA\Obj\Generic\?integer $id

A object id

\FAA\Obj\Generic\?string $language

The local language

string $type

The child type when defined

SearchFields()

SearchFields(): array

Returns

array

Name()

Name(): string

get a label in format of address [Company] | [Street], Zipcode Town

Returns

string

Salutation()

Salutation(\FAA\Obj\Generic\?string  $language = null): string|object

Get salutation

Get the translated salutation from this content type. Can be raw as well.

Parameters

\FAA\Obj\Generic\?string $language

Translate to this language

Returns

string|object —

The option value