| 1 | <?php |
||
| 10 | class OccurrenceType extends DataType |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The first occurrence of the specified day of the week from the beginning |
||
| 14 | * of the month. |
||
| 15 | * |
||
| 16 | * @var integer |
||
| 17 | */ |
||
| 18 | const FIRST_FROM_BEGINNING = 1; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The second occurrence of the specified day of the week from the beginning |
||
| 22 | * of the month. |
||
| 23 | * |
||
| 24 | * @var integer |
||
| 25 | */ |
||
| 26 | const SECOND_FROM_BEGINNING = 2; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The third occurrence of the specified day of the week from the beginning |
||
| 30 | * of the month. |
||
| 31 | * |
||
| 32 | * @var integer |
||
| 33 | */ |
||
| 34 | const THIRD_FROM_BEGINNING = 3; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The fourth occurrence of the specified day of the week from the beginning |
||
| 38 | * of the month. |
||
| 39 | * |
||
| 40 | * @var integer |
||
| 41 | */ |
||
| 42 | const FOURTH_FROM_BEGINNING = 4; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * The first occurrence of the specified day of the week from the end of the |
||
| 46 | * month. |
||
| 47 | * |
||
| 48 | * @var integer |
||
| 49 | */ |
||
| 50 | const FIRST_FROM_END = -1; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * The second occurrence of the specified day of the week from the end of |
||
| 54 | * the month. |
||
| 55 | * |
||
| 56 | * @var integer |
||
| 57 | */ |
||
| 58 | const SECOND_FROM_END = -2; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * The third occurrence of the specified day of the week from the end of the |
||
| 62 | * month. |
||
| 63 | * |
||
| 64 | * @var integer |
||
| 65 | */ |
||
| 66 | const THIRD_FROM_END = -3; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * The fourh occurrence of the specified day of the week from the end of the |
||
| 70 | * month. |
||
| 71 | * |
||
| 72 | * @var integer |
||
| 73 | */ |
||
| 74 | const FOURTH_FROM_END = -4; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Element value. |
||
| 78 | * |
||
| 79 | * @var string |
||
| 80 | */ |
||
| 81 | public $_; |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Returns the value of this object as a string. |
||
| 85 | * |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function __toString() |
||
| 92 | } |
||
| 93 |