Sets the priority Level between 1 and 5
@param int $level
@return sFire\Mail\Mail
191487
public function priority($level = 1) {

		if(false === ('-' . intval($level) == '-' . $level)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($level)), E_USER_ERROR);
		}

		if($level < 1 || $level > 5) {
			return trigger_error(sprintf('Argument 1 passed to %s() should be between 1 and 5, "%s" given', __METHOD__, $level), E_USER_ERROR);	
		}

		$priorities = [
			
			1 => ['1 (Highest)', 'High', 'High'],
			2 => ['2 (High)', 'High', 'High'],
			3 => ['3 (Normal)', 'Normal', 'Normal'],
			4 => ['4 (Low)', 'Low', 'Low'],
			5 => ['5 (Lowest)', 'Low', 'Low'],
		];

		$this -> headers['priority'] = $priorities[$level];

		return $this;
	}
703400
public function setPriority($priority)
    {
        if (!is_numeric($priority)) {
            throw new InvalidArgumentException(
                'Priority must be an integer'
            );
        }

        $this->priority = intval($priority);
        return $this;
    }
1143130
public function setPriority($priority)
    {
        $priorityMap = [
            self::PRIORITY_HIGHEST => 'Highest',
            self::PRIORITY_HIGH => 'High',
            self::PRIORITY_NORMAL => 'Normal',
            self::PRIORITY_LOW => 'Low',
            self::PRIORITY_LOWEST => 'Lowest',
            ];
        $pMapKeys = array_keys($priorityMap);
        if ($priority > max($pMapKeys)) {
            $priority = max($pMapKeys);
        } elseif ($priority < min($pMapKeys)) {
            $priority = min($pMapKeys);
        }
        if (!$this->setHeaderFieldModel('X-Priority',
            sprintf('%d (%s)', $priority, $priorityMap[$priority]))) {
            $this->getHeaders()->addTextHeader('X-Priority',
                sprintf('%d (%s)', $priority, $priorityMap[$priority]));
        }

        return $this;
    }
168969
public function setPriority($priority)
    {
        self::writeFullTag(
            $priority,
            'priority',
            false,
            'priority',
            $this->validator,
            'validatePriority',
            $this->exception,
            'Provided priority is not a valid value.'
        );

        return $this;
    }
765927
public function andLevelEquals($level, $alias = null)
    {
        list($alias, $suffix) = $this->getAliasAndSuffix($alias);

        return $this->andWhere($alias.'._level = :level'.$suffix)
                        ->setParameter('level'.$suffix, $level);
    }
67856
public static function setWarningLogLevel($level)
    {
        if (is_array($level)) {
            self::$warningLogLevel = $level;
        } else {
            self::$warningLogLevel[] = $level;
        }
    }
749258
public function setLevelPriority($level, $priority)
    {
        $level = strtoupper($level);
        $this->config["levelsPriorities"][$level] = $priority;
    }
947788
public function setWarningLevel($level = self::WARNING_LEVEL_DEFAULT)
    {
        if (!in_array($level, $this->availableWarningLevels)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The warning level "%s" is not available.',
                $level
            ));
        }

        $this->warningLevel = (string) $level;

        return $this;
    }
100974
public function setLevel(string $level)
    {
        if (!defined(LogLevel::class . '::' . strtoupper($level)))
            throw new \DomainException("Invalid log level: $level");

        $this->level = $level;
        $this->level_num = self::$LEVEL_NUMERIC[$level];
        return $this;
    }
97638
protected function setPropertyAccessibilityLevel(int $level)
    {
        if ( ! $this->isPropertyAccessibilityLevelValid($level)) {
            throw new RangeException(sprintf('Property accessibility level "%s" is invalid', $level));
        }
        $this->_propertyAccessibilityLevel = $level;
    }
244772
public static function isLevelFatal($level)
    {
        $errors = E_ERROR;
        $errors |= E_PARSE;
        $errors |= E_CORE_ERROR;
        $errors |= E_CORE_WARNING;
        $errors |= E_COMPILE_ERROR;
        $errors |= E_COMPILE_WARNING;
        return ($level & $errors) > 0;
    }
988366
final public function setMinLevel($minLevel)
    {
        if (isset($this->levels[$minLevel])) {
            $this->minLevel = $this->levels[$minLevel];
        }
        
        return $this;
    }
521630
public function brightness($level = 50): Image
	{
		// Normalize brighness level

		$level = min(max($level, -100), 100);

		// Adjust brightness

		$this->processor->brightness($level);

		return $this;
	}
1292123
public function setLogLevel($level= xPDO::LOG_LEVEL_FATAL) {
        $oldLevel = $this->logLevel;
        $this->logLevel= intval($level);
        return $oldLevel;
    }
838963
public static function setReportLevel(string $level): Matcha {
            if( ReportLevel::has($level) === false ) {
                throw new InvalidArgumentException(sprintf('The report level should be one of the following: %s, %s given', 
                    implode(', ', ReportLevel::availables()),
                    $level
                )); 
            }

            static::$reportLevel = $level;
            
            return new static;
        }
86482
public function setLogLevel($level)
    {
        $this->logLevelSet = true;
        if ($level != $this->getLogLevel()) {
            $this->logLevel = $level;
            $this->info("Setting loglevel to $level");
        }
    }
1345172
public function setLevel($level)
    {
        $this->level = $level;

        if (isset($this->nestedSetNode)) {
            $this->nestedSetNode->setLevel($level);
        }
        return $this;
    }