mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-01 09:01:06 -05:00
* Little's optimisations and booleans in conditions * Apply strict type * Apply strict type * Apply strict type * Fix multiple bugs with PHP 8.2 and 8.3 * Many declares missing, more errors fixed * Apply strict type * Another approach * Stronger typing for Minz_Session * Fix case of SQLite --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
21 lines
604 B
PHP
21 lines
604 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
interface Minz_ConfigurationSetterInterface {
|
|
|
|
/**
|
|
* Return whether the given key is supported by this setter.
|
|
* @param string $key the key to test.
|
|
* @return bool true if the key is supported, false otherwise.
|
|
*/
|
|
public function support(string $key): bool;
|
|
|
|
/**
|
|
* Set the given key in data with the current value.
|
|
* @param array<string,mixed> $data an array containing the list of all configuration data.
|
|
* @param string $key the key to update.
|
|
* @param mixed $value the value to set.
|
|
*/
|
|
public function handle(&$data, string $key, $value): void;
|
|
}
|