8000 Merge pull request #30 from milwad-dev/add-facade-methods · NativePHP/laravel@107f348 · GitHub
[go: up one dir, main page]

Skip to content

Commit 107f348

Browse files
authored
Merge pull request #30 from milwad-dev/add-facade-methods
Add facade methods
2 parents a54cebd + 332c064 commit 107f348

11 files changed

+63
-0
lines changed

src/Facades/App.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static void focus()
9+
* @method static void hide()
10+
* @method static bool isHidden()
11+
* @method static string version()
12+
* @method static int badgeCount($count = null)
13+
* @method static void addRecentDocument(string $path)
14+
* @method static array recentDocuments()
15+
* @method static void clearRecentDocuments()
16+
*/
717
class App extends Facade
818
{
919
protected static function getFacadeAccessor()

src/Facades/Clipboard.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static void clear()
9+
* @method static string text($text = null)
10+
* @method static string html($html = null)
11+
* @method static string image($image = null)
12+
*/
713
class Clipboard extends Facade
814
{
915
protected static function getFacadeAccessor()

src/Facades/ContextMenu.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
namespace Native\Laravel\Facades;
44

55
use Illuminate\Support\Facades\Facade;
6+
use Native\Laravel\Menu\Menu;
67

8+
/**
9+
* @method static void register(Menu $menu)
10+
* @method static void remove()
11+
*/
712
class ContextMenu extends Facade
813
{
914
protected static function getFacadeAccessor()

src/Facades/Dock.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
namespace Native\Laravel\Facades;
44

55
use Illuminate\Support\Facades\Facade;
6+
use Native\Laravel\Menu\Menu;
67

8+
/**
9+
* @method static void menu(Menu $menu)
10+
*/
711
class Dock extends Facade
812
{
913
protected static function getFacadeAccessor()

src/Facades/GlobalShortcut.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static \Native\Laravel\GlobalShortcut key(string $key)
9+
* @method static \Native\Laravel\GlobalShortcut event(string $event)
10+
* @method static void register()
11+
* @method static void unregister()
12+
*/
713
class GlobalShortcut extends Facade
814
{
915
protected static function getFacadeAccessor()

src/Facades/MenuBar.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static \Native\Laravel\MenuBar\PendingCreateMenuBar create()
9+
* @method static void show()
10+
* @method static void hide()
11+
* @method static void label(string $label)
12+
*/
713
class MenuBar extends Facade
814
{
915
protected static function getFacadeAccessor()

src/Facades/Process.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static string arch()
9+
* @method static string platform()
10+
* @method static float uptime()
11+
* @method static object fresh()
12+
*/
713
class Process extends Facade
814
{
915
protected static function getFacadeAccessor()

src/Facades/Screen.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static object cursorPosition()
9+
* @method static array displays()
10+
*/
711
class Screen extends Facade
812
{
913
protected static function getFacadeAccessor()

src/Facades/Settings.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static void set($key, $value)
9+
* @method static void mixed($key, $default = null)
10+
*/
711
class Settings extends Facade
812
{
913
protected static function getFacadeAccessor()

src/Facades/System.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static bool canPromptTouchID()
9+
* @method static bool promptTouchID(string $reason)
10+
*/
711
class System extends Facade
812
{
913
protected static function getFacadeAccessor()

src/Facades/Window.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7+
/**
8+
* @method static \Native\Laravel\Windows\PendingOpenWindow open(string $id = 'main')
9+
* @method static void close($id = null)
10+
* @method static object current()
11+
* @method static void resize($width, $height, $id = null)
12+
* @method static void position($x, $y, $animated = false, $id = null)
13+
* @method static void alwaysOnTop($alwaysOnTop = true, $id = null)
14+
*/
715
class Window extends Facade
816
{
917
protected static function getFacadeAccessor()

0 commit comments

Comments
 (0)
0