src/LINEBot/MessageBuilder/LocationMessageBuilder.php
public function buildMessage()
    {
        if (!empty($this->message)) {
            return $this->message;
        }

        $locationMessage = [
            'type' => MessageType::LOCATION,
            'title' => $this->title,
            'address' => $this->address,
            'latitude' => $this->latitude,
            'longitude' => $this->longitude,
        ];

        if ($this->quickReply) {
            $locationMessage['quickReply'] = $this->quickReply->buildQuickReply();
        }

        $this->message[] = $locationMessage;

        return $this->message;
    }
public function buildMessage()
    {
        if (!empty($this->message)) {
            return $this->message;
        }

        $locationMessage = [
            'type' => MessageType::LOCATION,
            'title' => $this->title,
            'address' => $this->address,
            'latitude' => $this->latitude,
            'longitude' => $this->longitude,
        ];

        if ($this->quickReply) {
            $locationMessage['quickReply'] = $this->quickReply->buildQuickReply();
        }

        $this->message[] = $locationMessage;

        return $this->message;
    }
public function buildMessage ( ) { if ( ! empty ( $ this -> message ) ) { return $ this -> message ; } $ locationMessage = [ 'type' => MessageType :: LOCATION , 'title' => $ this -> title , 'address' => $ this -> address , 'latitude' => $ this -> latitude , 'longitude' => $ this -> longitude , ] ; if ( $ this -> quickReply ) { $ locationMessage [ 'quickReply' ] = $ this -> quickReply -> buildQuickReply ( ) ; } $ this -> message [ ] = $ locationMessage ; return $ this -> message ; }
Builds location message structure.

@return array
Builds location message structure .