src/Message/AttachmentBuilder.php
public function create()
    {
        $this->data['mrkdwn_in'] = [];

        if ($this->markdownInText) {
            $this->data['mrkdwn_in'][] = 'text';
        }

        if ($this->markdownInPretext) {
            $this->data['mrkdwn_in'][] = 'pretext';
        }

        if ($this->markdownInFields) {
            $this->data['mrkdwn_in'][] = 'fields';
        }

        return Attachment::fromData($this->data);
    }
public function create()
    {
        $this->data['mrkdwn_in'] = [];

        if ($this->markdownInText) {
            $this->data['mrkdwn_in'][] = 'text';
        }

        if ($this->markdownInPretext) {
            $this->data['mrkdwn_in'][] = 'pretext';
        }

        if ($this->markdownInFields) {
            $this->data['mrkdwn_in'][] = 'fields';
        }

        return Attachment::fromData($this->data);
    }
public function create ( ) { $ this -> data [ 'mrkdwn_in' ] = [ ] ; if ( $ this -> markdownInText ) { $ this -> data [ 'mrkdwn_in' ] [ ] = 'text' ; } if ( $ this -> markdownInPretext ) { $ this -> data [ 'mrkdwn_in' ] [ ] = 'pretext' ; } if ( $ this -> markdownInFields ) { $ this -> data [ 'mrkdwn_in' ] [ ] = 'fields' ; } return Attachment :: fromData ( $ this -> data ) ; }
Creates and returns a new attachment object specified by the builder.

@return Attachment A new attachment object.
Creates and returns a new attachment object specified by the builder .