public function setAttachmentDefaults($defaults)
    {
        if ($this->attachmentDefaults != ($defaults = (array) $defaults)) {
            $this->attachmentDefaults = $defaults;

            $this->setAttachments($this->attachments);
        }

        return $this;
    }
public function setAttachmentDefaults($defaults)
    {
        if ($this->attachmentDefaults != ($defaults = (array) $defaults)) {
            $this->attachmentDefaults = $defaults;

            $this->setAttachments($this->attachments);
        }

        return $this;
    }
public function setAttachmentDefaults ( $ defaults ) { if ( $ this -> attachmentDefaults != ( $ defaults = ( array ) $ defaults ) ) { $ this -> attachmentDefaults = $ defaults ; $ this -> setAttachments ( $ this -> attachments ) ; } return $ this ; }
Set the attachments defaults.

@param  array  $defaults
@return $this
Set the attachments defaults .