Location

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

Firstred\PostNL\Entity\AbstractEntity

Summary

Methods

Properties

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

string[][]

protected static property Firstred\PostNL\Entity\Location::$AllowSundaySorting
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$DeliveryDate
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$DeliveryOptions
Type:

string[] | null

protected static property Firstred\PostNL\Entity\Location::$OpeningTime
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$Options
Type:

string[] | null

protected static property Firstred\PostNL\Entity\Location::$City
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$HouseNr
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$HouseNrExt
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$Postalcode
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$Street
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$Coordinates
Type:

\Firstred\PostNL\Entity\Coordinates | null

protected static property Firstred\PostNL\Entity\Location::$CoordinatesNorthWest
Type:

\Firstred\PostNL\Entity\CoordinatesNorthWest | null

protected static property Firstred\PostNL\Entity\Location::$CoordinatesSouthEast
Type:

\Firstred\PostNL\Entity\CoordinatesSouthEast | null

protected static property Firstred\PostNL\Entity\Location::$LocationCode
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$Saleschannel
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$TerminalType
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$RetailNetworkID
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$DownPartnerID
Type:

string | null

protected static property Firstred\PostNL\Entity\Location::$DownPartnerLocation
Type:

string | null

Methods

public Firstred\PostNL\Entity\Location::__construct($Postalcode=null, $AllowSundaySorting=null, $DeliveryDate=null, $DeliveryOptions=null, $Options=null, $Coordinates=null, $CoordinatesNorthWest=null, $CoordinatesSouthEast=null, $City=null, $Street=null, $HouseNr=null, $HouseNrExt=null, $LocationCode=null, $Saleschannel=null, $TerminalType=null, $RetailNetworkID=null, $DownPartnerID=null, $DownPartnerLocation=null)
Parameters:
  • $Postalcode (string | null)

  • $AllowSundaySorting (string | null)

  • $DeliveryDate (string | \DateTimeInterface | null)

  • $DeliveryOptions (array | null)

  • $Options (array | null)

  • $Coordinates (Firstred\PostNL\Entity\Coordinates | null)

  • $CoordinatesNorthWest (Firstred\PostNL\Entity\CoordinatesNorthWest | null)

  • $CoordinatesSouthEast (Firstred\PostNL\Entity\CoordinatesSouthEast | null)

  • $City (string | null)

  • $Street (string | null)

  • $HouseNr (string | null)

  • $HouseNrExt (string | null)

  • $LocationCode (string | null)

  • $Saleschannel (string | null)

  • $TerminalType (string | null)

  • $RetailNetworkID (string | null)

  • $DownPartnerID (string | null)

  • $DownPartnerLocation (string | null)

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

public Firstred\PostNL\Entity\Location::setDeliveryDate($DeliveryDate=null)
Parameters:
  • $DeliveryDate (string | \DateTimeInterface | null)

Returns:

static

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Since:

1.2.0

public Firstred\PostNL\Entity\Location::setPostalcode($Postalcode=null)
Set the postcode.
Parameters:
  • $Postalcode (string | null)

Returns:

\Firstred\PostNL\Entity\Location

public Firstred\PostNL\Entity\Location::setAllowSundaySorting($AllowSundaySorting=null)
Parameters:
  • $AllowSundaySorting (string | bool | int | null)

Returns:

\Firstred\PostNL\Entity\Location

Since:

1.0.0

Since:

1.0.0

public Firstred\PostNL\Entity\Location::xmlSerialize($writer)
Return a serializable array for the XMLWriter.
Parameters:
  • $writer (Sabre\Xml\Writer)

Returns:

void