ReasonNoTimeframe

class Firstred\PostNL\Entity\ReasonNoTimeframe
Class ReasonNoTimeframe.
Parent

Firstred\PostNL\Entity\AbstractEntity

Summary

Methods

Properties

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

string[][]

protected static property Firstred\PostNL\Entity\ReasonNoTimeframe::$Code
Type

string | null

protected static property Firstred\PostNL\Entity\ReasonNoTimeframe::$Date
Type

\DateTimeInterface | null

protected static property Firstred\PostNL\Entity\ReasonNoTimeframe::$Description
Type

string | null

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

string[] | null

protected static property Firstred\PostNL\Entity\ReasonNoTimeframe::$From
Type

string | null

protected static property Firstred\PostNL\Entity\ReasonNoTimeframe::$To
Type

string | null

Methods

public Firstred\PostNL\Entity\ReasonNoTimeframe::__construct($Code=null, $Date=null, $Description=null, $Options=null, $From=null, $To=null)
ReasonNoTimeframe constructor.
Parameters
  • $Code (string | null)

  • $Date (string | \DateTimeInterface | null)

  • $Description (string | null)

  • $Options (string[] | null)

  • $From (string | null)

  • $To (string | null)

Throws

\Firstred\PostNL\Exception\InvalidArgumentException

public Firstred\PostNL\Entity\ReasonNoTimeframe::setDate($date=null)
Set date
Parameters
  • $date (string | \DateTimeInterface | null)

Returns

static

Throws

\Firstred\PostNL\Exception\InvalidArgumentException

Since

1.2.0

public static Firstred\PostNL\Entity\ReasonNoTimeframe::jsonDeserialize($json)
Parameters
  • $json (stdClass)

Returns

mixed | \stdClass | null

Throws

\Firstred\PostNL\Exception\InvalidArgumentException

Throws

\Firstred\PostNL\Exception\NotSupportedException

Throws

\Firstred\PostNL\Exception\InvalidArgumentException

Throws

\Firstred\PostNL\Exception\NotSupportedException

Since

1.2.0

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

Returns

void