private function normalizePriority($priority)
    {
        if (is_numeric($priority)) {
            $priority = round(floatval($priority), 1);
            if (0 <= $priority && 1 >= $priority) {
                return $priority;
            }
        }

        return null;
    }