summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-11-01 15:46:03 -0500
committerxjm2017-11-01 15:46:03 -0500
commit9debb7d597daf128aa51d4f9b705b7e35640aeb6 (patch)
treee86d7f498fe45546ad159124f7ba3d72c34ef077
parent8e03638edc215538d50a3e6cfa9af5dad7f6f7dd (diff)
Issue #2902707 by Jo Fitzgerald, mpdonadio, Adita, gambry, JayKandari, jhedstrom, refman1073: Document magic methods in DateTimePlus and DrupalDateTime using phpDoc @method
-rw-r--r--core/lib/Drupal/Component/Datetime/DateTimePlus.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index 2e9bc02..5a8365c 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -23,6 +23,19 @@ use Drupal\Component\Utility\ToStringTrait;
* errors are. This is less disruptive than allowing datetime exceptions
* to abort processing. The calling script can decide what to do about
* errors using hasErrors() and getErrors().
+ *
+ * @method $this add(\DateInterval $interval)
+ * @method static array getLastErrors()
+ * @method $this modify(string $modify)
+ * @method $this setDate(int $year, int $month, int $day)
+ * @method $this setISODate(int $year, int $week, int $day = 1)
+ * @method $this setTime(int $hour, int $minute, int $second = 0, int $microseconds = 0)
+ * @method $this setTimestamp(int $unixtimestamp)
+ * @method $this setTimezone(\DateTimeZone $timezone)
+ * @method $this sub(\DateInterval $interval)
+ * @method int getOffset()
+ * @method int getTimestamp()
+ * @method \DateTimeZone getTimezone()
*/
class DateTimePlus {