@@ -13,22 +13,15 @@ class Timezone
13
13
14
14
/**
15
15
* The app's current display & manipulation timezone.
16
- *
17
- * @var \Carbon\CarbonTimeZone
18
16
*/
19
17
protected CarbonTimeZone $ current ;
20
18
/**
21
19
* The app's current storage timezone.
22
- *
23
- * @var \Carbon\CarbonTimeZone
24
20
*/
25
21
protected CarbonTimeZone $ storage ;
26
22
27
23
/**
28
24
* Create a new singleton instance.
29
- *
30
- * @param string $default
31
- * @return void
32
25
*/
33
26
public function __construct (string $ default )
34
27
{
@@ -40,9 +33,6 @@ public function __construct(string $default)
40
33
* @alias setCurrent
41
34
*
42
35
* Set the current application timezone.
43
- *
44
- * @param mixed $timezone
45
- * @return void
46
36
*/
47
37
public function set (mixed $ timezone = null ): void
48
38
{
@@ -51,9 +41,6 @@ public function set(mixed $timezone = null): void
51
41
52
42
/**
53
43
* Set the current application timezone.
54
- *
55
- * @param mixed $timezone
56
- * @return void
57
44
*/
58
45
public function setCurrent (mixed $ timezone ): void
59
46
{
@@ -62,8 +49,6 @@ public function setCurrent(mixed $timezone): void
62
49
63
50
/**
64
51
* Return the current application timezone.
65
- *
66
- * @return \Carbon\CarbonTimeZone
67
52
*/
68
53
public function current (): CarbonTimeZone
69
54
{
@@ -72,9 +57,6 @@ public function current(): CarbonTimeZone
72
57
73
58
/**
74
59
* Set the current database timezone.
75
- *
76
- * @param mixed $timezone
77
- * @return void
78
60
*/
79
61
public function setStorage (mixed $ timezone ): void
80
62
{
@@ -83,8 +65,6 @@ public function setStorage(mixed $timezone): void
83
65
84
66
/**
85
67
* Return the current application timezone.
86
- *
87
- * @return \Carbon\CarbonTimeZone
88
68
*/
89
69
public function storage (): CarbonTimeZone
90
70
{
@@ -93,8 +73,6 @@ public function storage(): CarbonTimeZone
93
73
94
74
/**
95
75
* Get the current timezoned date.
96
- *
97
- * @return \Carbon\CarbonInterface
98
76
*/
99
77
public function now (): CarbonInterface
100
78
{
@@ -103,10 +81,6 @@ public function now(): CarbonInterface
103
81
104
82
/**
105
83
* Configure given date for the application's current timezone.
106
- *
107
- * @param mixed $value
108
- * @param null|callable $maker
109
- * @return \Carbon\CarbonInterface
110
84
*/
111
85
public function date (mixed $ value , callable $ maker = null ): CarbonInterface
112
86
{
@@ -115,10 +89,6 @@ public function date(mixed $value, callable $maker = null): CarbonInterface
115
89
116
90
/**
117
91
* Configure given date for the database storage timezone.
118
- *
119
- * @param mixed $value
120
- * @param null|callable $maker
121
- * @return \Carbon\CarbonInterface
122
92
*/
123
93
public function store (mixed $ value , callable $ maker = null ): CarbonInterface
124
94
{
@@ -127,9 +97,6 @@ public function store(mixed $value, callable $maker = null): CarbonInterface
127
97
128
98
/**
129
99
* Duplicate the given date and shift its timezone to the application's current timezone.
130
- *
131
- * @param \Carbon\CarbonInterface $date
132
- * @return \Carbon\CarbonInterface
133
100
*/
134
101
protected function convertToCurrent (CarbonInterface $ date ): CarbonInterface
135
102
{
@@ -138,9 +105,6 @@ protected function convertToCurrent(CarbonInterface $date): CarbonInterface
138
105
139
106
/**
140
107
* Duplicate the given date and shift its timezone to the database's storage timezone.
141
- *
142
- * @param \Carbon\CarbonInterface $date
143
- * @return \Carbon\CarbonInterface
144
108
*/
145
109
protected function convertToStorage (CarbonInterface $ date ): CarbonInterface
146
110
{
@@ -149,10 +113,6 @@ protected function convertToStorage(CarbonInterface $date): CarbonInterface
149
113
150
114
/**
151
115
* Create or configure date using the application's current timezone.
152
- *
153
- * @param mixed $value
154
- * @param null|callable $maker
155
- * @return \Carbon\CarbonInterface
156
116
*/
157
117
protected function makeDateWithCurrent (mixed $ value , callable $ maker = null ): CarbonInterface
158
118
{
@@ -163,10 +123,6 @@ protected function makeDateWithCurrent(mixed $value, callable $maker = null): Ca
163
123
164
124
/**
165
125
* Create or configure date using the database's storage timezone.
166
- *
167
- * @param mixed $value
168
- * @param null|callable $maker
169
- * @return \Carbon\CarbonInterface
170
126
*/
171
127
protected function makeDateWithStorage (mixed $ value , callable $ maker = null ): CarbonInterface
172
128
{
@@ -177,11 +133,6 @@ protected function makeDateWithStorage(mixed $value, callable $maker = null): Ca
177
133
178
134
/**
179
135
* Create a date using the provided timezone.
180
- *
181
- * @param mixed $value
182
- * @param \Carbon\CarbonTimeZone $timezone
183
- * @param null|callable $maker
184
- * @return \Carbon\CarbonInterface
185
136
*/
186
137
protected function makeDate (mixed $ value , CarbonTimeZone $ timezone , callable $ maker = null ): CarbonInterface
187
138
{
@@ -192,9 +143,6 @@ protected function makeDate(mixed $value, CarbonTimeZone $timezone, callable $ma
192
143
193
144
/**
194
145
* Create a Carbon timezone from given value.
195
- *
196
- * @param mixed $value
197
- * @return \Carbon\CarbonTimeZone
198
146
*/
199
147
protected function makeTimezone (mixed $ value ): CarbonTimeZone
200
148
{
0 commit comments