src/LINEBot/TemplateActionBuilder/UriTemplateActionBuilder.php
public function buildTemplateAction()
    {
        $templateAction = BuildUtil::removeNullElements([
            'type' => ActionType::URI,
            'label' => $this->label,
            'uri' => $this->uri,
        ]);

        if ($this->altUri) {
            $templateAction['altUri'] = $this->altUri->build();
        }

        return $templateAction;
    }
public function buildTemplateAction()
    {
        $templateAction = BuildUtil::removeNullElements([
            'type' => ActionType::URI,
            'label' => $this->label,
            'uri' => $this->uri,
        ]);

        if ($this->altUri) {
            $templateAction['altUri'] = $this->altUri->build();
        }

        return $templateAction;
    }
public function buildTemplateAction ( ) { $ templateAction = BuildUtil :: removeNullElements ( [ 'type' => ActionType :: URI , 'label' => $ this -> label , 'uri' => $ this -> uri , ] ) ; if ( $ this -> altUri ) { $ templateAction [ 'altUri' ] = $ this -> altUri -> build ( ) ; } return $ templateAction ; }
Builds URI action structure.

@return array Built URI action structure.
Builds URI action structure .