mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
8f594698c7
Remove verbose documentation pattern references and redundant explanations, keeping only essential type annotations.
46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Prime;
|
|
|
|
/**
|
|
* Type-safe configuration for PHPFlasher.
|
|
*
|
|
* @phpstan-type ConfigType array{
|
|
* default: string,
|
|
* main_script?: string,
|
|
* scripts?: string[],
|
|
* styles?: string[],
|
|
* inject_assets?: bool,
|
|
* translate?: bool,
|
|
* excluded_paths?: list<non-empty-string>,
|
|
* options?: array<string, mixed>,
|
|
* filter?: array<string, mixed>,
|
|
* flash_bag?: false|array<string, string[]>,
|
|
* presets?: array<string, array{
|
|
* type: string,
|
|
* title: string,
|
|
* message: string,
|
|
* options: array<string, mixed>
|
|
* }>,
|
|
* plugins?: array<string, array{
|
|
* scripts?: string[],
|
|
* styles?: string[],
|
|
* options?: array<string, mixed>
|
|
* }>
|
|
* }
|
|
*/
|
|
final class Configuration
|
|
{
|
|
/**
|
|
* @phpstan-param ConfigType $config
|
|
*
|
|
* @phpstan-return ConfigType
|
|
*/
|
|
public static function from(array $config): array
|
|
{
|
|
return $config;
|
|
}
|
|
}
|