blob: 453734dae16e188f625b0fd25781162cbec12f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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;
}
|