summaryrefslogtreecommitdiffstats
path: root/vendor/simshaun/recurr/src/Recurr/DateInfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/simshaun/recurr/src/Recurr/DateInfo.php')
-rw-r--r--vendor/simshaun/recurr/src/Recurr/DateInfo.php73
1 files changed, 73 insertions, 0 deletions
diff --git a/vendor/simshaun/recurr/src/Recurr/DateInfo.php b/vendor/simshaun/recurr/src/Recurr/DateInfo.php
new file mode 100644
index 0000000..453734d
--- /dev/null
+++ b/vendor/simshaun/recurr/src/Recurr/DateInfo.php
@@ -0,0 +1,73 @@
+<?php
+
+/*
+ * Copyright 2013 Shaun Simmons
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ *
+ * Based on rrule.js
+ * Copyright 2010, Jakub Roztocil and Lars Schoning
+ * https://github.com/jkbr/rrule/blob/master/LICENCE
+ */
+
+namespace Recurr;
+
+/**
+ * Class DateInfo is responsible for holding information based on a particular
+ * date that is applicable to a Rule.
+ *
+ * @package Recurr
+ * @author Shaun Simmons <shaun@envysphere.com>
+ */
+class DateInfo
+{
+ /** @var \DateTime */
+ public $dt;
+
+ /**
+ * @var int Number of days in the month.
+ */
+ public $monthLength;
+
+ /**
+ * @var int Number of days in the year (365 normally, 366 on leap years)
+ */
+ public $yearLength;
+
+ /**
+ * @var int Number of days in the next year (365 normally, 366 on leap years)
+ */
+ public $nextYearLength;
+
+ /**
+ * @var array Day of year of last day of each month.
+ */
+ public $mRanges;
+
+ /** @var int Day of week */
+ public $dayOfWeek;
+
+ /** @var int Day of week of the year's first day */
+ public $dayOfWeekYearDay1;
+
+ /**
+ * @var array Month number for each day of the year.
+ */
+ public $mMask;
+
+ /**
+ * @var array Month-daynumber for each day of the year.
+ */
+ public $mDayMask;
+
+ /**
+ * @var array Month-daynumber for each day of the year (in reverse).
+ */
+ public $mDayMaskNeg;
+
+ /**
+ * @var array Day of week (0-6) for each day of the year, 0 being Monday
+ */
+ public $wDayMask;
+}