TimeframeTimeFrame

class Firstred\PostNL\Entity\TimeframeTimeFrame
Parent:

Firstred\PostNL\Entity\AbstractEntity

Summary

Methods

Properties

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

string | null

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

string | null

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

string | null

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

string[] | null

protected static property Firstred\PostNL\Entity\TimeframeTimeFrame::$Sustainability
Type:

\Firstred\PostNL\Entity\Sustainability | null

Methods

public Firstred\PostNL\Entity\TimeframeTimeFrame::__construct($GetSentDate=null, $From=null, $To=null, $Options=null, $Sustainability=null)
Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

public Firstred\PostNL\Entity\TimeframeTimeFrame::getDate()
Returns:

string | null

public Firstred\PostNL\Entity\TimeframeTimeFrame::setDate(string|\\DateTimeInterface|null $Date=null)
Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Since:

1.2.0

public Firstred\PostNL\Entity\TimeframeTimeFrame::getFrom()
Returns:

string | null

public Firstred\PostNL\Entity\TimeframeTimeFrame::setFrom($From)
Parameters:
  • $From (string | null)

Returns:

static

public Firstred\PostNL\Entity\TimeframeTimeFrame::getTo()
Returns:

string | null

public Firstred\PostNL\Entity\TimeframeTimeFrame::setTo($To)
Parameters:
  • $To (string | null)

Returns:

static

public Firstred\PostNL\Entity\TimeframeTimeFrame::getOptions()
Returns:

string[] | null

public Firstred\PostNL\Entity\TimeframeTimeFrame::setOptions($Options)
Parameters:
  • $Options (string[] | null)

Returns:

static

public Firstred\PostNL\Entity\TimeframeTimeFrame::getSustainability()
Returns:

\Firstred\PostNL\Entity\Sustainability | null

Since:

1.4.2

public Firstred\PostNL\Entity\TimeframeTimeFrame::setSustainability($Sustainability)
Parameters:
Returns:

static

Since:

1.4.2

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

Returns:

\Firstred\PostNL\Entity\TimeframeTimeFrame

Throws:

\Firstred\PostNL\Exception\DeserializationException

Throws:

\Firstred\PostNL\Exception\NotSupportedException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Throws:

\Firstred\PostNL\Exception\DeserializationException

Throws:

\Firstred\PostNL\Exception\NotSupportedException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Throws:

\Firstred\PostNL\Exception\DeserializationException

Throws:

\Firstred\PostNL\Exception\NotSupportedException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Since:

1.2.0