@@ -5,15 +5,24 @@ class DateTime implements \DateTimeInterface
5
5
public function __construct (string $ datetime = "now " , ?DateTimeZone $ timezone = null )
6
6
{
7
7
}
8
- /** @tentative-return-type */
8
+ /**
9
+ * @tentative-return-type
10
+ * @return void
11
+ */
9
12
public function __wakeup ()
10
13
{
11
14
}
12
- /** @tentative-return-type */
15
+ /**
16
+ * @tentative-return-type
17
+ * @return DateTime
18
+ */
13
19
public static function __set_state (array $ array )
14
20
{
15
21
}
16
- /** @tentative-return-type */
22
+ /**
23
+ * @tentative-return-type
24
+ * @return DateTime
25
+ */
17
26
public static function createFromImmutable (DateTimeImmutable $ object )
18
27
{
19
28
}
@@ -23,6 +32,7 @@ public static function createFromInterface(DateTimeInterface $object) : DateTime
23
32
/**
24
33
* @tentative-return-type
25
34
* @alias date_create_from_format
35
+ * @return (DateTime | false)
26
36
*/
27
37
public static function createFromFormat (string $ format , string $ datetime , ?DateTimeZone $ timezone = null )
28
38
{
@@ -38,90 +48,103 @@ public static function getLastErrors()
38
48
/**
39
49
* @tentative-return-type
40
50
* @alias date_format
51
+ * @return string
41
52
*/
42
53
public function format (string $ format )
43
54
{
44
55
}
45
56
/**
46
57
* @tentative-return-type
47
58
* @alias date_modify
59
+ * @return (DateTime | false)
48
60
*/
49
61
public function modify (string $ modifier )
50
62
{
51
63
}
52
64
/**
53
65
* @tentative-return-type
54
66
* @alias date_add
67
+ * @return DateTime
55
68
*/
56
69
public function add (DateInterval $ interval )
57
70
{
58
71
}
59
72
/**
60
73
* @tentative-return-type
61
74
* @alias date_sub
75
+ * @return DateTime
62
76
*/
63
77
public function sub (DateInterval $ interval )
64
78
{
65
79
}
66
80
/**
67
81
* @tentative-return-type
68
82
* @alias date_timezone_get
83
+ * @return (DateTimeZone | false)
69
84
*/
70
85
public function getTimezone ()
71
86
{
72
87
}
73
88
/**
74
89
* @tentative-return-type
75
90
* @alias date_timezone_set
91
+ * @return DateTime
76
92
*/
77
93
public function setTimezone (DateTimeZone $ timezone )
78
94
{
79
95
}
80
96
/**
81
97
* @tentative-return-type
82
98
* @alias date_offset_get
99
+ * @return int
83
100
*/
84
101
public function getOffset ()
85
102
{
86
103
}
87
104
/**
88
105
* @tentative-return-type
89
106
* @alias date_time_set
107
+ * @return DateTime
90
108
*/
91
109
public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 )
92
110
{
93
111
}
94
112
/**
95
113
* @tentative-return-type
96
114
* @alias date_date_set
115
+ * @return DateTime
97
116
*/
98
117
public function setDate (int $ year , int $ month , int $ day )
99
118
{
100
119
}
101
120
/**
102
121
* @tentative-return-type
103
122
* @alias date_isodate_set
123
+ * @return DateTime
104
124
*/
105
125
public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 )
106
126
{
107
127
}
108
128
/**
109
129
* @tentative-return-type
110
130
* @alias date_timestamp_set
131
+ * @return DateTime
111
132
*/
112
133
public function setTimestamp (int $ timestamp )
113
134
{
114
135
}
115
136
/**
116
137
* @tentative-return-type
117
138
* @alias date_timestamp_get
139
+ * @return int
118
140
*/
119
141
public function getTimestamp ()
120
142
{
121
143
}
122
144
/**
123
145
* @tentative-return-type
124
146
* @alias date_diff
147
+ * @return DateInterval
125
148
*/
126
149
public function diff (DateTimeInterface $ targetObject , bool $ absolute = false )
127
150
{
0 commit comments