public function setPriority($priority)
    {
        if (!OptionsPriorities::isValid($priority)) {
            throw new InvalidOptionsException('priority is not valid, please refer to the documentation or use the constants of the class "OptionsPriorities"');
        }
        $this->priority = $priority;

        return $this;
    }
public function setPriority($priority)
    {
        if (!OptionsPriorities::isValid($priority)) {
            throw new InvalidOptionsException('priority is not valid, please refer to the documentation or use the constants of the class "OptionsPriorities"');
        }
        $this->priority = $priority;

        return $this;
    }
public function setPriority ( $ priority ) { if ( ! OptionsPriorities :: isValid ( $ priority ) ) { throw new InvalidOptionsException ( 'priority is not valid, please refer to the documentation or use the constants of the class "OptionsPriorities"' ) ; } $ this -> priority = $ priority ; return $ this ; }
Sets the priority of the message. Valid values are "normal" and "high."
By default, messages are sent with normal priority.

@param string $priority

@return \LaravelFCM\Message\OptionsBuilder

@throws InvalidOptionsException
Sets the priority of the message . Valid values are normal and high . By default messages are sent with normal priority .