mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
Improves documentation with parameter types
This commit is contained in:
@@ -180,7 +180,8 @@ final class NotyBuilder extends NotificationBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param "open"|"close" $option
|
* @param 'open'|'close' $option
|
||||||
|
* @param 'noty_effects_open'|'noty_effects_close'|string $effect
|
||||||
*/
|
*/
|
||||||
public function animation(string $option, string $effect): self
|
public function animation(string $option, string $effect): self
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ final class NotyfBuilder extends NotificationBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param 'x'|'y' $position
|
||||||
|
* @param 'left'|'center'|'right'|'top'|'bottom' $value
|
||||||
|
*
|
||||||
* @phpstan-param ($position is 'x' ? "left"|"center"|"right" : "top"|"center"|"bottom") $value
|
* @phpstan-param ($position is 'x' ? "left"|"center"|"right" : "top"|"center"|"bottom") $value
|
||||||
*/
|
*/
|
||||||
public function position(string $position, string $value): self
|
public function position(string $position, string $value): self
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ use Flasher\Prime\Notification\Type;
|
|||||||
|
|
||||||
if (!\function_exists('Flasher\Notyf\Prime\notyf')) {
|
if (!\function_exists('Flasher\Notyf\Prime\notyf')) {
|
||||||
/**
|
/**
|
||||||
|
* @param 'success'|'info'|'warning'|'error' $type
|
||||||
* @param array{
|
* @param array{
|
||||||
* duration?: int,
|
* duration?: int,
|
||||||
* ripple?: bool,
|
* ripple?: bool,
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ use Flasher\Prime\Notification\Type;
|
|||||||
|
|
||||||
if (!function_exists('notyf')) {
|
if (!function_exists('notyf')) {
|
||||||
/**
|
/**
|
||||||
|
* @param 'success'|'info'|'warning'|'error' $type
|
||||||
* @param array{
|
* @param array{
|
||||||
* duration?: int,
|
* duration?: int,
|
||||||
* ripple?: bool,
|
* ripple?: bool,
|
||||||
|
|||||||
Reference in New Issue
Block a user