public function setTemplateId($id, $order = null) {
        if ($order === null) {
            // If no order is provided, append the template ID to the end of the list
            $this->template_ids[] = $id;
        } else {
            $this->template_ids[$order] = $id;
        }
        return $this;
    }
public function setTemplateId($id, $order = null) {
        if ($order === null) {
            // If no order is provided, append the template ID to the end of the list
            $this->template_ids[] = $id;
        } else {
            $this->template_ids[$order] = $id;
        }
        return $this;
    }
public function setTemplateId ( $ id , $ order = null ) { if ( $ order === null ) { // If no order is provided, append the template ID to the end of the list $ this -> template_ids [ ] = $ id ; } else { $ this -> template_ids [ $ order ] = $ id ; } return $ this ; }
Set the template ID, along with an optional order
@param string $id
@param int null $index
@return \HelloSign\TemplateSignatureRequest
Set the template ID along with an optional order