Skip to content

Commit 60ac44a

Browse files
authored
feat: add quit method to App class (#519)
* feat: add quit method to App class * Method for facade added
1 parent 0102a92 commit 60ac44a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/App.php

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ class App
88
{
99
public function __construct(protected Client $client) {}
1010

11+
public function quit(): void
12+
{
13+
$this->client->post('app/quit');
14+
}
15+
1116
public function focus(): void
1217
{
1318
$this->client->post('app/focus');

src/Facades/App.php

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8+
* @method static void quit()
89
* @method static void focus()
910
* @method static void hide()
1011
* @method static bool isHidden()

0 commit comments

Comments
 (0)