-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi,
It would be nice if Input and Getter will be generic someday :)
use DataMap\Input\Input;
/**
* @template TInput
* @template TOutput
*/
interface Getter
{
/**
* @param Input<TInput> $input
* @return TOutput
*/
public function __invoke(Input $input);
}/**
* @template TInput
*/
interface Input
{
/**
* @param TInput $default
* @return TInput
*/
public function get(string $key, $default = null);
public function has(string $key): bool;
}Metadata
Metadata
Assignees
Labels
No labels