original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Adds an Attachment to the SignatureRequest