add livewire autocomplete for phpstorm

This commit is contained in:
Khoubza Younes
2021-09-19 16:18:20 +01:00
parent 1514e72a2b
commit 3a3bcf559d
7 changed files with 18 additions and 41 deletions
-41
View File
@@ -1,41 +0,0 @@
<?php
namespace {
exit("This file should not be included, only analyzed by your IDE");
}
namespace Flasher\Prime\Notification {
interface NotificationBuilderInterface {
public function livewire(array $context = []): self;
}
}
namespace Flasher\SweetAlert\Prime {
class SweetAlertFactory {
public function livewire(array $context = []): self { }
}
}
namespace Flasher\Toastr\Prime {
class ToastrFactory {
public function livewire(array $context = []): self { }
}
}
namespace Flasher\Noty\Prime {
class NotyFactory {
public function livewire(array $context = []): self { }
}
}
namespace Flasher\Notyf\Prime {
class NotyfFactory {
public function livewire(array $context = []): self { }
}
}
namespace Flasher\Pnotify\Prime {
class PnotifyFactory {
public function livewire(array $context = []): self { }
}
}
+3
View File
@@ -4,6 +4,9 @@ namespace Flasher\Noty\Prime;
use Flasher\Prime\Notification\NotificationBuilder; use Flasher\Prime\Notification\NotificationBuilder;
/**
* @method self livewire(array $context = array())
*/
final class NotyBuilder extends NotificationBuilder final class NotyBuilder extends NotificationBuilder
{ {
/** /**
+3
View File
@@ -4,6 +4,9 @@ namespace Flasher\Notyf\Prime;
use Flasher\Prime\Notification\NotificationBuilder; use Flasher\Prime\Notification\NotificationBuilder;
/**
* @method self livewire(array $context = array())
*/
final class NotyfBuilder extends NotificationBuilder final class NotyfBuilder extends NotificationBuilder
{ {
/** /**
+3
View File
@@ -4,6 +4,9 @@ namespace Flasher\Pnotify\Prime;
use Flasher\Prime\Notification\NotificationBuilder; use Flasher\Prime\Notification\NotificationBuilder;
/**
* @method self livewire(array $context = array())
*/
final class PnotifyBuilder extends NotificationBuilder final class PnotifyBuilder extends NotificationBuilder
{ {
public function warning($message = null, array $options = array()) public function warning($message = null, array $options = array())
@@ -10,6 +10,9 @@ use Flasher\Prime\Stamp\PriorityStamp;
use Flasher\Prime\Stamp\StampInterface; use Flasher\Prime\Stamp\StampInterface;
use Flasher\Prime\Storage\StorageManagerInterface; use Flasher\Prime\Storage\StorageManagerInterface;
/**
* @method self livewire(array $context = array())
*/
class NotificationBuilder implements NotificationBuilderInterface class NotificationBuilder implements NotificationBuilderInterface
{ {
/** /**
@@ -4,6 +4,9 @@ namespace Flasher\SweetAlert\Prime;
use Flasher\Prime\Notification\NotificationBuilder; use Flasher\Prime\Notification\NotificationBuilder;
/**
* @method self livewire(array $context = array())
*/
final class SweetAlertBuilder extends NotificationBuilder final class SweetAlertBuilder extends NotificationBuilder
{ {
public function type($type, $message = null, array $options = array()) public function type($type, $message = null, array $options = array())
+3
View File
@@ -4,6 +4,9 @@ namespace Flasher\Toastr\Prime;
use Flasher\Prime\Notification\NotificationBuilder; use Flasher\Prime\Notification\NotificationBuilder;
/**
* @method self livewire(array $context = array())
*/
final class ToastrBuilder extends NotificationBuilder final class ToastrBuilder extends NotificationBuilder
{ {
/** /**