src/Message/AttachmentBuilder.php
public function setTitle($title, $link = null)
    {
        $this->data['title'] = $title;
        if ($link) {
            $this->data['title_link'] = $link;
        }

        return $this;
    }
public function setTitle($title, $link = null)
    {
        $this->data['title'] = $title;
        if ($link) {
            $this->data['title_link'] = $link;
        }

        return $this;
    }
public function setTitle ( $ title , $ link = null ) { $ this -> data [ 'title' ] = $ title ; if ( $ link ) { $ this -> data [ 'title_link' ] = $ link ; } return $ this ; }
Sets the attachment title with an optional link.

@param string $title The attachment title text.
@param string $link An optional URL the title should link to.
@return $this
Sets the attachment title with an optional link .