public function addAttachment($name, $signer_index, $instructions = null, $required = null)
    {
        $attachment = new Attachment(array(
                'name' => $name,
                'instructions' => $instructions,
                'signer_index' => $signer_index,
                'required' => $required
            ));

        $this->attachments[] = $attachment;

        return $this;
    }
public function addAttachment($name, $signer_index, $instructions = null, $required = null)
    {
        $attachment = new Attachment(array(
                'name' => $name,
                'instructions' => $instructions,
                'signer_index' => $signer_index,
                'required' => $required
            ));

        $this->attachments[] = $attachment;

        return $this;
    }
public function addAttachment ( $ name , $ signer_index , $ instructions = null , $ required = null ) { $ attachment = new Attachment ( array ( 'name' => $ name , 'instructions' => $ instructions , 'signer_index' => $ signer_index , 'required' => $ required ) ) ; $ this -> attachments [ ] = $ attachment ; return $ this ; }
Adds an Attachment to the SignatureRequest

@param  string $name Name of the Attachment.
@param  integer $signer_index Index of the signer to upload this Attachment.
@param  string $instructions Instructions for uploading the Attachment. (optional)
@param  boolean $required Whether or not the signer is required to upload this Attachment. (optional)
@return SignatureRequest
Adds an Attachment to the SignatureRequest