protected getBooleanValue ( $path ) : boolean | null | ||
$path | ||
Résultat | boolean | null |
protected function getBooleanValue($path)
{
$normalizedPath = strtolower($path);
if (in_array($normalizedPath, ['true', 'on', 'yes'])) {
return true;
}
if (in_array($normalizedPath, ['false', 'off', 'no'])) {
return false;
}
return null;
}