src/LINEBot/QuickReplyBuilder/QuickReplyMessageBuilder.php
public function buildQuickReply()
    {
        if (!empty($this->quickReply)) {
            return $this->quickReply;
        }

        $items = [];

        foreach ($this->buttonBuilders as $buttonBuilder) {
            $items[] = $buttonBuilder->buildQuickReplyButton();
        }

        $this->quickReply = ['items' => $items];

        return $this->quickReply;
    }
public function buildQuickReply()
    {
        if (!empty($this->quickReply)) {
            return $this->quickReply;
        }

        $items = [];

        foreach ($this->buttonBuilders as $buttonBuilder) {
            $items[] = $buttonBuilder->buildQuickReplyButton();
        }

        $this->quickReply = ['items' => $items];

        return $this->quickReply;
    }
public function buildQuickReply ( ) { if ( ! empty ( $ this -> quickReply ) ) { return $ this -> quickReply ; } $ items = [ ] ; foreach ( $ this -> buttonBuilders as $ buttonBuilder ) { $ items [ ] = $ buttonBuilder -> buildQuickReplyButton ( ) ; } $ this -> quickReply = [ 'items' => $ items ] ; return $ this -> quickReply ; }
Builds button of quick reply structure.

@return array
Builds button of quick reply structure .