src/Message/AttachmentBuilder.php
public function addField(AttachmentField $field)
    {
        if (!isset($this->data['fields'])) {
            $this->data['fields'] = [];
        }

        $this->data['fields'][] = $field->data;

        return $this;
    }
public function addField(AttachmentField $field)
    {
        if (!isset($this->data['fields'])) {
            $this->data['fields'] = [];
        }

        $this->data['fields'][] = $field->data;

        return $this;
    }
public function addField ( AttachmentField $ field ) { if ( ! isset ( $ this -> data [ 'fields' ] ) ) { $ this -> data [ 'fields' ] = [ ] ; } $ this -> data [ 'fields' ] [ ] = $ field -> data ; return $ this ; }
Adds a field to the attachment.

@param AttachmentField $field The field to add.
@return $this
Adds a field to the attachment .