Skip to content

Commit 2dd38fd

Browse files
Merge pull request #11 from edwinvdpol/feature/facade-typehint
Add typehints to facade
2 parents 8a74054 + eb55418 commit 2dd38fd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/Facades/Timezone.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,22 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static void set(mixed $timezone = null)
9+
* @method static void setCurrent(mixed $timezone = null)
10+
* @method static \Carbon\CarbonTimeZone current()
11+
* @method static void setStorage(mixed $timezone = null)
12+
* @method static \Carbon\CarbonTimeZone storage()
13+
* @method static \Carbon\CarbonInterface now()
14+
* @method static \Carbon\CarbonInterface date(mixed $value, callable|null $maker)
15+
* @method static \Carbon\CarbonInterface store(mixed $value, callable|null $maker)
16+
*/
717
class Timezone extends Facade
818
{
9-
public static function getFacadeAccessor()
19+
/**
20+
* Get the registered name of the component.
21+
*/
22+
public static function getFacadeAccessor(): string
1023
{
1124
return \Whitecube\LaravelTimezones\Timezone::class;
1225
}

0 commit comments

Comments
 (0)