.. rst-class:: phpdoctorst .. role:: php(code) :language: php TimeframeTimeFrame ================== .. php:namespace:: Firstred\PostNL\Entity .. php:class:: TimeframeTimeFrame .. rst-class:: phpdoc-description | Class TimeframeTimeFrame\. :Parent: :php:class:`Firstred\\PostNL\\Entity\\AbstractEntity` Summary ------- Methods ~~~~~~~ * :php:meth:`public \_\_construct\($GetSentDate, $From, $To, $Options, $Sustainability\)` * :php:meth:`public setDate\($Date\)` * :php:meth:`public static jsonDeserialize\($json\)` Properties ---------- .. php:attr:: public defaultProperties :Type: string[][] .. php:attr:: protected static Date :Type: string | null .. php:attr:: protected static From :Type: string | null .. php:attr:: protected static Options :Type: string[] | null .. php:attr:: protected static To :Type: string | null .. php:attr:: protected static Sustainability :Type: :any:`\\Firstred\\PostNL\\Entity\\Sustainability ` | null Methods ------- .. rst-class:: public .. php:method:: public __construct( $GetSentDate=null, $From=null, $To=null, $Options=null, $Sustainability=null) :Parameters: * **$GetSentDate** (string | :any:`\\DateTimeInterface ` | null) * **$From** (string | null) * **$To** (string | null) * **$Options** (string[] | null) * **$Sustainability** (:any:`Firstred\\PostNL\\Entity\\Sustainability ` | null) :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` .. rst-class:: public .. php:method:: public setDate( $Date=null) :Parameters: * **$Date** (string | :any:`\\DateTimeInterface ` | null) :Returns: static :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Since: 1.2.0 .. rst-class:: public static .. php:method:: public static jsonDeserialize( $json) :Parameters: * **$json** (:any:`stdClass `) :Returns: mixed | :any:`\\stdClass ` | null :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\NotSupportedException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\InvalidArgumentException ` :Throws: :any:`\\Firstred\\PostNL\\Exception\\NotSupportedException ` :Since: 1.2.0