LaravelFCM\Request\Request::getTo PHP Method

getTo() protected method

get to key transformed
protected getTo ( ) : array | null | string
return array | null | string
    protected function getTo()
    {
        $to = is_array($this->to) ? null : $this->to;
        if ($this->topic && $this->topic->hasOnlyOneTopic()) {
            $to = $this->topic->build();
        }
        return $to;
    }