You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
chore: update the doc and improve phpstan annotations
This commit is contained in:
@@ -47,7 +47,12 @@ final class FlasherContainer
|
||||
*
|
||||
* @param string $id the service identifier
|
||||
*
|
||||
* @return FlasherInterface|NotificationFactoryInterface the service instance
|
||||
* @phpstan-return ($id is 'flasher' ? \Flasher\Prime\FlasherInterface :
|
||||
* ($id is 'flasher.noty' ? \Flasher\Noty\Prime\NotyInterface :
|
||||
* ($id is 'flasher.notyf' ? \Flasher\Notyf\Prime\NotyfInterface :
|
||||
* ($id is 'flasher.sweetalert' ? \Flasher\SweetAlert\Prime\SweetAlertInterface :
|
||||
* ($id is 'flasher.toastr' ? \Flasher\Toastr\Prime\ToastrInterface :
|
||||
* \Flasher\Prime\Factory\NotificationFactoryInterface)))))
|
||||
*/
|
||||
public static function create(string $id): FlasherInterface|NotificationFactoryInterface
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user