.. rst-class:: phpdoctorst .. role:: php(code) :language: php Timeframe ========= .. php:namespace:: Firstred\PostNL\Entity .. php:class:: Timeframe :Parent: :php:class:`Firstred\\PostNL\\Entity\\AbstractEntity` Summary ------- Methods ~~~~~~~ * :php:meth:`public \_\_construct\($City, $CountryCode, $Date, $EndDate, $HouseNr, $HouseNrExt, $Options, $PostalCode, $Street, $SundaySorting, $Interval, $Range, $Timeframes, $StartDate\)` * :php:meth:`public setDate\($Date\)` * :php:meth:`public setStartDate\($StartDate\)` * :php:meth:`public setEndDate\($EndDate\)` * :php:meth:`public setPostalCode\($PostalCode\)` * :php:meth:`public getCity\(\)` * :php:meth:`public setCity\($City\)` * :php:meth:`public getCountryCode\(\)` * :php:meth:`public setCountryCode\($CountryCode\)` * :php:meth:`public getHouseNr\(\)` * :php:meth:`public setHouseNr\($HouseNr\)` * :php:meth:`public getHouseNrExt\(\)` * :php:meth:`public setHouseNrExt\($HouseNrExt\)` * :php:meth:`public getOptions\(\)` * :php:meth:`public setOptions\($Options\)` * :php:meth:`public getStreet\(\)` * :php:meth:`public setStreet\($Street\)` * :php:meth:`public getInterval\(\)` * :php:meth:`public setInterval\($Interval\)` * :php:meth:`public getTimeframeRange\(\)` * :php:meth:`public setTimeframeRange\($TimeframeRange\)` * :php:meth:`public getTimeframes\(\)` * :php:meth:`public setTimeframes\($Timeframes\)` * :php:meth:`public getDate\(\)` * :php:meth:`public getEndDate\(\)` * :php:meth:`public getPostalCode\(\)` * :php:meth:`public getStartDate\(\)` * :php:meth:`public getSundaySorting\(\)` * :php:meth:`public setSundaySorting\($SundaySorting\)` * :php:meth:`public jsonSerialize\(\)` Properties ---------- .. php:attr:: protected static City :Type: string | null .. php:attr:: protected static CountryCode :Type: string | null .. php:attr:: protected static Date :Type: :any:`\\DateTimeInterface ` | null .. php:attr:: protected static EndDate :Type: :any:`\\DateTimeInterface ` | null .. php:attr:: protected static HouseNr :Type: string | null .. php:attr:: protected static HouseNrExt :Type: string | null .. php:attr:: protected static Options :Type: string[] | null .. php:attr:: protected static PostalCode :Type: string | null .. php:attr:: protected static StartDate :Type: :any:`\\DateTimeInterface ` | null .. php:attr:: protected static Street :Type: string | null .. php:attr:: protected static SundaySorting :Type: bool | null .. php:attr:: protected static Interval :Type: string | null .. php:attr:: protected static TimeframeRange :Type: string | null .. php:attr:: protected static Timeframes :Type: :any:`\\Firstred\\PostNL\\Entity\\TimeframeTimeFrame\[\] ` | :any:`\\Firstred\\PostNL\\Entity\\Timeframe\[\] ` | null Methods ------- .. rst-class:: public .. php:method:: public __construct( $City=null, $CountryCode=null, string|\\DateTimeInterface|null $Date=null, string|\\DateTimeInterface|null $EndDate=null, $HouseNr=null, $HouseNrExt=null, $Options=\[\], $PostalCode=null, $Street=null, $SundaySorting=\'false\', $Interval=null, $Range=null, $Timeframes=null, string|\\DateTimeInterface|null $StartDate=null) :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` .. rst-class:: public .. php:method:: public setDate(string|\\DateTimeInterface|null $Date=null) :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Since: 1.2.0 .. rst-class:: public .. php:method:: public setStartDate(string|\\DateTimeInterface|null $StartDate=null) :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Since: 1.2.0 .. rst-class:: public .. php:method:: public setEndDate(string|\\DateTimeInterface|null $EndDate=null) :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Since: 1.2.0 .. rst-class:: public .. php:method:: public setPostalCode( $PostalCode=null) :Parameters: * **$PostalCode** (string | null) :Returns: static .. rst-class:: public .. php:method:: public getCity() :Returns: string | null .. rst-class:: public .. php:method:: public setCity( $City) :Parameters: * **$City** (string | null) :Returns: :any:`\\Firstred\\PostNL\\Entity\\Timeframe ` .. rst-class:: public .. php:method:: public getCountryCode() :Returns: string | null .. rst-class:: public .. php:method:: public setCountryCode( $CountryCode) :Parameters: * **$CountryCode** (string | null) :Returns: :any:`\\Firstred\\PostNL\\Entity\\Timeframe ` .. rst-class:: public .. php:method:: public getHouseNr() :Returns: string | null .. rst-class:: public .. php:method:: public setHouseNr( $HouseNr) :Parameters: * **$HouseNr** (string | null) :Returns: :any:`\\Firstred\\PostNL\\Entity\\Timeframe ` .. rst-class:: public .. php:method:: public getHouseNrExt() :Returns: string | null .. rst-class:: public .. php:method:: public setHouseNrExt( $HouseNrExt) :Parameters: * **$HouseNrExt** (string | null) :Returns: :any:`\\Firstred\\PostNL\\Entity\\Timeframe ` .. rst-class:: public .. php:method:: public getOptions() :Returns: array | null .. rst-class:: public .. php:method:: public setOptions( $Options) :Parameters: * **$Options** (array | null) :Returns: :any:`\\Firstred\\PostNL\\Entity\\Timeframe ` .. rst-class:: public .. php:method:: public getStreet() :Returns: string | null .. rst-class:: public .. php:method:: public setStreet( $Street) :Parameters: * **$Street** (string | null) :Returns: static .. rst-class:: public .. php:method:: public getInterval() :Returns: string | null .. rst-class:: public .. php:method:: public setInterval( $Interval) :Parameters: * **$Interval** (string | null) :Returns: static .. rst-class:: public .. php:method:: public getTimeframeRange() :Returns: string | null .. rst-class:: public .. php:method:: public setTimeframeRange( $TimeframeRange) :Parameters: * **$TimeframeRange** (string | null) :Returns: static .. rst-class:: public .. php:method:: public getTimeframes() :Returns: :any:`\\Firstred\\PostNL\\Entity\\TimeframeTimeFrame\[\] ` | :any:`\\Firstred\\PostNL\\Entity\\Timeframe\[\] ` | null .. rst-class:: public .. php:method:: public setTimeframes( $Timeframes) :Parameters: * **$Timeframes** (:any:`Firstred\\PostNL\\Entity\\TimeframeTimeFrame\[\] ` | :any:`\\Firstred\\PostNL\\Entity\\Timeframe\[\] ` | null) :Returns: static .. rst-class:: public .. php:method:: public getDate() :Returns: :any:`\\DateTimeInterface ` | null .. rst-class:: public .. php:method:: public getEndDate() :Returns: :any:`\\DateTimeInterface ` | null .. rst-class:: public .. php:method:: public getPostalCode() :Returns: string | null .. rst-class:: public .. php:method:: public getStartDate() :Returns: :any:`\\DateTimeInterface ` | null .. rst-class:: public .. php:method:: public getSundaySorting() :Returns: bool | null .. rst-class:: public .. php:method:: public setSundaySorting(string|bool|int|null $SundaySorting=null) :Since: 1.0.0 :Since: 1.0.0 .. rst-class:: public .. php:method:: public jsonSerialize() :Returns: array :Throws: :any:`\\Firstred\\PostNL\\Exception\\ServiceNotSetException `