The notification priority.

Valid values are : low, moderate, normal, high, emergency
Default: normal

@param string $priority Notification priority
Default: normal

@return void
@throws BuildException
487798
public function setPriority($priority = '')
    {
        if ('' == $priority) {
            $priority = 'normal';
        }

        switch ($priority) {
            case 'low':
                $priority = Net_Growl::PRIORITY_LOW;
                break;
            case 'moderate':
                $priority = Net_Growl::PRIORITY_MODERATE;
                break;
            case 'normal':
                $priority = Net_Growl::PRIORITY_NORMAL;
                break;
            case 'high':
                $priority = Net_Growl::PRIORITY_HIGH;
                break;
            case 'emergency':
                $priority = Net_Growl::PRIORITY_EMERGENCY;
                break;
            default:
                throw new BuildException(
                    '"priority" attribute is invalid.'
                );
        }

        $this->priority = $priority;
    }
869807
public function setup( $priority = 100 ) {

		if ( did_action( self::ACTION_SETUP ) ) {
			return $this;
		}

		// We use WONOLOG_DISABLE instead of WONOLOG_ENABLE so that not defined (default) means enabled.
		$disable_by_env = filter_var( getenv( 'WONOLOG_DISABLE' ), FILTER_VALIDATE_BOOLEAN );

		/**
		 * Filters whether to completely disable Wonolog.
		 *
		 * @param bool $disable
		 */
		if ( apply_filters( self::FILTER_DISABLE, $disable_by_env ) ) {
			return $this;
		}

		/**
		 * Fires right before Wonolog is set up.
		 */
		do_action( self::ACTION_SETUP );

		$processor_registry = new ProcessorsRegistry();
		$handlers_registry  = new HandlersRegistry( $processor_registry );
		$subscriber         = new LogActionSubscriber( new Channels( $handlers_registry, $processor_registry ) );
		$listener           = [ $subscriber, 'listen' ];

		add_action( LOG, $listener, $priority, PHP_INT_MAX );

		foreach ( Logger::getLevels() as $level => $level_code ) {
			// $level_code is from 100 (DEBUG) to 600 (EMERGENCY) this makes hook priority based on level priority
			add_action( LOG . '.' . strtolower( $level ), $listener, $priority + ( 601 - $level_code ), PHP_INT_MAX );
		}

		add_action( 'muplugins_loaded', [ HookListenersRegistry::class, 'initialize' ], PHP_INT_MAX );

		/**
		 * Fires right after Wonolog has been set up.
		 */
		do_action( self::ACTION_LOADED );

		return $this;
	}
1041049
public function insert($value, $priority)
    {
        if (! is_int($priority)) {
            throw new Exception\InvalidArgumentException('The priority must be an integer');
        }
        $this->values[$priority][] = $value;
        if (! isset($this->priorities[$priority])) {
            $this->priorities[$priority] = $priority;
            $this->maxPriority           = max($priority, $this->maxPriority);
        }
        ++$this->count;
    }
19351
public function logPrioriotyId($priority = 'medium')
    {
        $logPriority = LogPriorities::where('name', $priority)->first();
        if (is_null($logPriority)) {
            $logPriority = new LogPriorities(['name' => $priority]);
            $logPriority->save();
        }
        return $logPriority->id;
    }
61465
public function insert($value, $priority)
    {
        if (is_int($priority)) {
            $priority = [$priority, $this->counter--];
        }
        parent::insert($value, $priority);
    }
572971
protected void setPriority(int priority)
   {
      if (tc.isEntryEnabled()) SibTr.entry(this, tc, "setPriority", ""+priority);
      this.priority = priority;
      if (tc.isEntryEnabled()) SibTr.exit(this, tc, "setPriority");      
   }
397497
public function setPriority($p)
    {
        $this->priority = $p;
        if ($this->ev !== null) {
            $this->ev->priority = $p;
        }
    }
885548
public static function log($message, $priority = Project::MSG_INFO)
    {
        $p = self::getCurrentProject();
        if ($p) {
            $p->log($message, $priority);
        }
    }
1218054
public function post(Notification $notification)
    {
        $notificationApi = $this->doPost('/post', $notification->toArray());

        if (200 !== $notificationApi->getResponse()->getStatusCode()
            && 201 !== $notificationApi->getResponse()->getStatusCode()) {
            throw new ApiException('cannot send notification', $this->getRequest(), $this->getResponse());
        }

        return true;
    }
1128852
public function setPriority($priority)
    {
        if (!$priority instanceof Priority) {
            $priority = new Priority(floatval($priority));
        }
        $this->elements[self::ELEMENT_PRIORITY] = $priority;

        return $this;
    }
1059495
public function listen($events, $listener, $priority = 0)
    {
        if ($priority === 0) {
            $this->events->on($events, $listener);
            return;
        }

        if ($priority > 5) {
            $this->events->onBefore($events, $listener);
            return;
        }

        $this->events->onAfter($events, $listener);

    }
1073788
public function setPriority($priority)
    {
        Argument::i()->test(1, 'string', 'number');

        switch ($priority) {
            case 'high':
                $this->priority = 9;
                break;

            case 'medium':
                $this->priority = 4;
                break;

            case 'low':
                $this->priority = 0;
                break;

            default:
                $this->priority = $priority;
                break;
        }

        return $this;
    }
315127
public function addInitializer(InitializerInterface $initializer, int $priority = 0)
    {
        if (empty($this->initializers[$priority])) {
            $this->initializers[$priority] = [];
        }

        $this->initializers[$priority][] = $initializer;
        $this->sortedInitializers = [];
    }
478336
public function insert($data, $priority = self::PIRORITY_DEFAULT): void
    {
        parent::insert($data, $priority);
    }
888865
public function priority($priority)
    {
        if (!$this->isNumber($priority)) {
            throw new EventManagerException(EventManagerException::MSG_INVALID_ARG, [
                    '$priority',
                    'integer'
                ]
            );
        }

        if ($priority <= 100 || $priority >= 1000) {
            throw new EventManagerException(EventManagerException::INVALID_PRIORITY_VALUE);
        }
        $this->priority = $priority;

        return $this;
    }
441351
public function setPriority($priority)
    {
        $oldPriority = $this->priority;
        $this->priority = $priority;
        if (!($this instanceof RunInterface && $this->hasStarted())
            && method_exists($this, 'dispatch')
            && $this instanceof PrioritisedInterface) {
            $this->dispatch(PriorityChangedEvent::CHANGED, new PriorityChangedEvent($this, $priority, $oldPriority));
        }
        return $this;
    }
880076
public function before($callback, $priority = 0)
    {
        //        $app = $this;
        $container = $this->container;

        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($callback, $container) {
            if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
                return;
            }

            $ret = call_user_func($container['callback_resolver']->resolveCallback($callback), $event->getRequest(), $container);

            if ($ret instanceof Response) {
                $event->setResponse($ret);
            }
        }, $priority);
    }