Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / lib / Drupal / Core / TypedData / Type / DateTimeInterface.php
1 <?php
2
3 namespace Drupal\Core\TypedData\Type;
4
5 use Drupal\Core\Datetime\DrupalDateTime;
6
7 /**
8  * Interface for dates, optionally including a time.
9  *
10  * @ingroup typed_data
11  */
12 interface DateTimeInterface {
13
14   /**
15    * Returns the date time object.
16    *
17    * @return \Drupal\Core\Datetime\DrupalDateTime|null
18    *   A date object or NULL if there is no date.
19    */
20   public function getDateTime();
21
22   /**
23    * Sets the date time object.
24    *
25    * @param \Drupal\Core\Datetime\DrupalDateTime $dateTime
26    *   An instance of a date time object.
27    */
28   public function setDateTime(DrupalDateTime $dateTime);
29
30 }