mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
add livewire autocomplete for phpstorm
This commit is contained in:
@@ -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 { }
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,9 @@ namespace Flasher\Noty\Prime;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
final class NotyBuilder extends NotificationBuilder
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace Flasher\Notyf\Prime;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
final class NotyfBuilder extends NotificationBuilder
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace Flasher\Pnotify\Prime;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
final class PnotifyBuilder extends NotificationBuilder
|
||||
{
|
||||
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\Storage\StorageManagerInterface;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
class NotificationBuilder implements NotificationBuilderInterface
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace Flasher\SweetAlert\Prime;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
final class SweetAlertBuilder extends NotificationBuilder
|
||||
{
|
||||
public function type($type, $message = null, array $options = array())
|
||||
|
||||
@@ -4,6 +4,9 @@ namespace Flasher\Toastr\Prime;
|
||||
|
||||
use Flasher\Prime\Notification\NotificationBuilder;
|
||||
|
||||
/**
|
||||
* @method self livewire(array $context = array())
|
||||
*/
|
||||
final class ToastrBuilder extends NotificationBuilder
|
||||
{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user