src/Slack/Attachment/Attachment.php
public function setAuthor(Author $author)
    {
        $this->attachment['author_name'] = $author;

        if ($author->hasIcon()) {
            $this->attachment['author_icon'] = $author->getIcon();
        }

        if ($author->hasLink()) {
            $this->attachment['author_link'] = $author->getLink();
        }

        return $this;
    }
public function setAuthor(Author $author)
    {
        $this->attachment['author_name'] = $author;

        if ($author->hasIcon()) {
            $this->attachment['author_icon'] = $author->getIcon();
        }

        if ($author->hasLink()) {
            $this->attachment['author_link'] = $author->getLink();
        }

        return $this;
    }
public function setAuthor ( Author $ author ) { $ this -> attachment [ 'author_name' ] = $ author ; if ( $ author -> hasIcon ( ) ) { $ this -> attachment [ 'author_icon' ] = $ author -> getIcon ( ) ; } if ( $ author -> hasLink ( ) ) { $ this -> attachment [ 'author_link' ] = $ author -> getLink ( ) ; } return $ this ; }
The author parameters will display a small section at the top of a message attachment.

@param Author $author

@return self
The author parameters will display a small section at the top of a message attachment .