original_string: function addElement($fieldName, $element, $headers = null)
      {
          if ($this->_trailingBoundary)
              throw new \Exception('Trailing Boundary Is Added.');
          
          if (! $headers instanceof iHeaders )
              $headers = (! empty($headers) ) ? new CollectionHeader($headers) : new CollectionHeader;
  
  
          if ( $this->_addElement($fieldName, $element, $headers) )
              $this->elementsAdded[$fieldName] = $element;
  
          return $this;
      }
code: function addElement($fieldName, $element, $headers = null)
      {
          if ($this->_trailingBoundary)
              throw new \Exception('Trailing Boundary Is Added.');
          
          if (! $headers instanceof iHeaders )
              $headers = (! empty($headers) ) ? new CollectionHeader($headers) : new CollectionHeader;
  
  
          if ( $this->_addElement($fieldName, $element, $headers) )
              $this->elementsAdded[$fieldName] = $element;
  
          return $this;
      }
code_tokens: function addElement ( $ fieldName , $ element , $ headers = null ) { if ( $ this -> _trailingBoundary ) throw new \ Exception ( 'Trailing Boundary Is Added.' ) ; if ( ! $ headers instanceof iHeaders ) $ headers = ( ! empty ( $ headers ) ) ? new CollectionHeader ( $ headers ) : new CollectionHeader ; if ( $ this -> _addElement ( $ fieldName , $ element , $ headers ) ) $ this -> elementsAdded [ $ fieldName ] = $ element ; return $ this ; }
docstring: Append Boundary Element
  
  @param string                                       $fieldName Form Field Name
  @param UploadedFileInterface|string|StreamInterface $element
  @param null|array                                   $headers   Extra Headers To Be Added
  
  @return $this
  @throws \Exception
docstring_tokens: Append Boundary Element