BaseAddressData extends Element
in package
Uses IdentifiableElementTrait, EnumResolverTrait

This is the base address data class.

The base addresses information will be stored in that class and will remain immutable (only get methods are available)

Tags
see
BaseAddressData::getAlias()
see
BaseAddressData::getType()
see
BaseAddressData::getFirstName()
see
BaseAddressData::getLastName()
see
BaseAddressData::getCompany()
see
BaseAddressData::getAddress()
see
BaseAddressData::getAddressAdditionalInformation()
see
BaseAddressData::getNumber()
see
BaseAddressData::getCity()
see
BaseAddressData::getState()
see
BaseAddressData::getPostalCode()
see
BaseAddressData::getVat()
see
BaseAddressData::getNif()
see
BaseAddressData::getLocation()
see
BaseAddressData::getPhone()
see
BaseAddressData::getMobile()
see
BaseAddressData::getFax()
see
BaseAddressData::getTax()
see
BaseAddressData::getRe()
see
BaseAddressData::getReverseChargeVat()
see
Element
see
ElementTrait
see
IdentifiableElementTrait
see
IntegrableElementTrait
see
EnumResolverTrait

Table of Contents

$address  : string
$addressAdditionalInformation  : string
$alias  : string
$city  : string
$company  : string
$error  : Error|null
$fax  : string
$firstName  : string
$id Autonumeric element id.  : int
$lastName  : string
$location  : Location|null
$mobile  : string
$nif  : string
$number  : string
$phone  : string
$postalCode  : string
$re  : bool
$reverseChargeVat  : bool
$state  : string
$tax  : bool
$type  : string
$vat  : string
getAddress() Returns the address address (street and other filled data in this field).  : string
getAddressAdditionalInformation() Returns the address additional information.  : string
getAlias() Returns the address alias.  : string
getCity() Returns the address city.  : string
getCompany() Returns the address company.  : string
getError() Returns the current element error (if there is error).  : Error|null
getFax() Returns the address fax.  : string
getFirstName() Returns the user's address first name.  : string
getId() Returns the element id.  : int
getLastName() Returns the user's address lastName.  : string
getLocation() Returns the address location.  : Location|null
getMobile() Returns the address mobile.  : string
getNif() Returns the address nif.  : string
getNumber() Returns the address number.  : string
getPhone() Returns the address phone.  : string
getPostalCode() Returns the address postalCode.  : string
getRe() Returns if the address applies RE.  : bool
getReverseChargeVat() Returns if the address applies with the reverse charge vat.  : bool
getState() Returns the address state.  : string
getTax() Returns if the address applies taxes.  : bool
getType() Returns the address type.  : string
getVat() Returns the address vat.  : string
setError()  : void
setLocation()  : void

Properties

$addressAdditionalInformation

protected string $addressAdditionalInformation = ''

$id

Autonumeric element id.

protected int $id = 0

All the given elements by the LogiCommerce API will send it.

Methods

getAddress()

Returns the address address (street and other filled data in this field).

public getAddress() : string
Return values
string —

getAddressAdditionalInformation()

Returns the address additional information.

public getAddressAdditionalInformation() : string
Return values
string —

getAlias()

Returns the address alias.

public getAlias() : string
Return values
string —

getCity()

Returns the address city.

public getCity() : string
Return values
string —

getCompany()

Returns the address company.

public getCompany() : string
Return values
string —

getError()

Returns the current element error (if there is error).

public getError() : Error|null
Return values
Error|null —

getFax()

Returns the address fax.

public getFax() : string
Return values
string —

getFirstName()

Returns the user's address first name.

public getFirstName() : string
Return values
string —

getLastName()

Returns the user's address lastName.

public getLastName() : string
Return values
string —

getMobile()

Returns the address mobile.

public getMobile() : string
Return values
string —

getNif()

Returns the address nif.

public getNif() : string
Return values
string —

getNumber()

Returns the address number.

public getNumber() : string
Return values
string —

getPhone()

Returns the address phone.

public getPhone() : string
Return values
string —

getPostalCode()

Returns the address postalCode.

public getPostalCode() : string
Return values
string —

getRe()

Returns if the address applies RE.

public getRe() : bool
Return values
bool —

getReverseChargeVat()

Returns if the address applies with the reverse charge vat.

public getReverseChargeVat() : bool
Return values
bool —

getState()

Returns the address state.

public getState() : string
Return values
string —

getTax()

Returns if the address applies taxes.

public getTax() : bool
Return values
bool —

getType()

Returns the address type.

public getType() : string
Return values
string —

getVat()

Returns the address vat.

public getVat() : string
Return values
string —

setError()

protected setError(mixed $error) : void
Parameters
$error : mixed
Return values
void —

setLocation()

protected setLocation(array<string|int, mixed> $location) : void
Parameters
$location : array<string|int, mixed>
Return values
void —

Search results