public function setPriority($priority)
	{
		if (is_string($priority))
		{
			switch (strtolower($priority))
			{
				case 'high':
					$priority = 1;
					break;

				case 'normal':
					$priority = 3;
					break;

				case 'low':
					$priority = 5;
					break;

				default:
					$priority = 3;
					break;
			}
		}
		return parent::setPriority($priority);
	}
public function setPriority($priority)
	{
		if (is_string($priority))
		{
			switch (strtolower($priority))
			{
				case 'high':
					$priority = 1;
					break;

				case 'normal':
					$priority = 3;
					break;

				case 'low':
					$priority = 5;
					break;

				default:
					$priority = 3;
					break;
			}
		}
		return parent::setPriority($priority);
	}
public function setPriority ( $ priority ) { if ( is_string ( $ priority ) ) { switch ( strtolower ( $ priority ) ) { case 'high' : $ priority = 1 ; break ; case 'normal' : $ priority = 3 ; break ; case 'low' : $ priority = 5 ; break ; default : $ priority = 3 ; break ; } } return parent :: setPriority ( $ priority ) ; }
Set the priority of this message.
The value is an integer where 1 is the highest priority and 5 is the lowest.

Modified version to also accept a string $message->setPriority('high');

@param   mixed  $priority  integer|string
@return  object
Set the priority of this message . The value is an integer where 1 is the highest priority and 5 is the lowest .