Contact

class Firstred\PostNL\Entity\Contact
Class Contact.
Parent:

Firstred\PostNL\Entity\AbstractEntity

Summary

Methods

Properties

public property Firstred\PostNL\Entity\Contact::$defaultProperties
Type:

string[][]

protected static property Firstred\PostNL\Entity\Contact::$ContactType
Type:

string | null

protected static property Firstred\PostNL\Entity\Contact::$Email
Type:

string | null

protected static property Firstred\PostNL\Entity\Contact::$SMSNr
Type:

string | null

protected static property Firstred\PostNL\Entity\Contact::$TelNr
Type:

string | null

Methods

public Firstred\PostNL\Entity\Contact::__construct($ContactType=null, $Email=null, $SMSNr=null, $TelNr=null)
Contact constructor.
Parameters:
  • $ContactType (string | null)

  • $Email (string | null)

  • $SMSNr (string | null)

  • $TelNr (string | null)

Throws:

\libphonenumber\NumberParseException

public Firstred\PostNL\Entity\Contact::setTelNr($TelNr=null, $countryCode=null)
Set the telephone number.
Parameters:
  • $TelNr (string | null)

  • $countryCode (string | null)

Returns:

static

Throws:

\libphonenumber\NumberParseException

Since:

1.0.0

Since:

1.0.0

public Firstred\PostNL\Entity\Contact::setSMSNr($SMSNr=null, $countryCode=null)
Set the mobile number.
Parameters:
  • $SMSNr (string | null)

  • $countryCode (string | null)

Returns:

static

Throws:

\libphonenumber\NumberParseException

Since:

1.0.0

Since:

1.0.0