public static function dayNames(array $dayKeys = [], array $options = [])
{
if (!$dayKeys) {
$dayKeys = range(0, 6);
}
$res = [];
$abbr = isset($options['abbr']) ? $options['abbr'] : false;
$offset = isset($options['offset']) ? $options['offset'] : 0;
foreach ($dayKeys as $key) {
$res[$key] = static::dayName($key, $abbr, $offset);
}
return $res;
}