8000 Add facade methods by milwad-dev · Pull Request #30 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

Add facade methods #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 21, 2023
10 changes: 10 additions & 0 deletions src/Facades/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static void focus()
* @method static void hide()
* @method static bool isHidden()
* @method static string version()
* @method static int badgeCount($count = null)
* @method static void addRecentDocument(string $path)
* @method static array recentDocuments()
* @method static void clearRecentDocuments()
*/
class App extends Facade
{
protected static function getFacadeAccessor()
Expand Down
6 changes: 6 additions & 0 deletions src/Facades/Clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static void clear()
* @method static string text($text = null)
* @method static string html($html = null)
* @method static string image($image = null)
*/
class Clipboard extends Facade
{
protected static function getFacadeAccessor()
Expand Down
5 changes: 5 additions & 0 deletions src/Facades/ContextMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
namespace Native\Laravel\Facades;

use Illuminate\Support\Facades\Facade;
use Native\Laravel\Menu\Menu;

/**
* @method static void register(Menu $menu)
* @method static void remove()
*/
class ContextMenu extends Facade
{
protected static function getFacadeAccessor()
Expand Down
4 changes: 4 additions & 0 deletions src/Facades/Dock.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
namespace Native\Laravel\Facades;

use Illuminate\Support\Facades\Facade;
use Native\Laravel\Menu\Menu;

/**
* @method static void menu(Menu $menu)
*/
class Dock extends Facade
{
protected static function getFacadeAccessor()
Expand Down
6 changes: 6 additions & 0 deletions src/Facades/GlobalShortcut.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static \Native\Laravel\GlobalShortcut key(string $key)
* @method static \Native\Laravel\GlobalShortcut event(string $event)
* @method static void register()
* @method static void unregister()
*/
class GlobalShortcut extends Facade
{
protected static function getFacadeAccessor()
Expand Down
6 changes: 6 additions & 0 deletions src/Facades/MenuBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static \Native\Laravel\MenuBar\PendingCreateMenuBar create()
* @method static void show()
* @method static void hide()
* @method static void label(string $label)
*/
class MenuBar extends Facade
{
protected static function getFacadeAccessor()
Expand Down
6 changes: 6 additions & 0 deletions src/Facades/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static string arch()
* @method static string platform()
* @method static float uptime()
* @method static object fresh()
*/
class Process extends Facade
{
protected static function getFacadeAccessor()
Expand Down
4 changes: 4 additions & 0 deletions src/Facades/Screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static object cursorPosition()
* @method static array displays()
*/
class Screen extends Facade
{
protected static function getFacadeAccessor()
Expand Down
4 changes: 4 additions & 0 deletions src/Facades/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static void set($key, $value)
* @method static void mixed($key, $default = null)
*/
class Settings extends Facade
{
protected static function getFacadeAccessor()
Expand Down
4 changes: 4 additions & 0 deletions src/Facades/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static bool canPromptTouchID()
* @method static bool promptTouchID(string $reason)
*/
class System extends Facade
{
protected static function getFacadeAccessor()
Expand Down
8 changes: 8 additions & 0 deletions src/Facades/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

use Illuminate\Support\Facades\Facade;

/**
* @method static \Native\Laravel\Windows\PendingOpenWindow open(string $id = 'main')
* @method static void close($id = null)
* @method static object current()
* @method static void resize($width, $height, $id = null)
* @method static void position($x, $y, $animated = false, $id = null)
* @method static void alwaysOnTop($alwaysOnTop = true, $id = null)
*/
class Window extends Facade
{
protected static function getFacadeAccessor()
Expand Down
0