LaravelFCM\Message\Topics::orTopic PHP Method

orTopic() public method

Parenthesis is a closure Equivalent of this: **'TopicA' in topic' || 'TopicB' in topics** $topic = new Topics(); $topic->topic('TopicA') ->orTopic('TopicB'); Equivalent of this: **'TopicA' in topics && ('TopicB' in topics || 'TopicC' in topics)** $topic = new Topics(); $topic->topic('TopicA') ->andTopic(function($condition) { $condition->topic('TopicB')->orTopic('TopicC'); }); > Note: Only two operators per expression are supported by fcm
public orTopic ( string | Closur\Closure $first ) : Topics
$first string | Closur\Closure topicName or closure
return Topics
    public function orTopic($first)
    {
        return $this->on($first, ' || ');
    }