original_string: public function setChannelElement($elementName, $content, array $attributes = null, $multiple = false)
      {
          if (empty($elementName))
              throw new \InvalidArgumentException('The element name may not be empty or NULL.');
          if (!is_string($elementName))
              throw new \InvalidArgumentException('The element name must be a string.');
  
          $entity['content'] = $content;
          $entity['attributes'] = $attributes;
  
          if ($multiple === TRUE)
              $this->channels[$elementName][] = $entity;
          else
              $this->channels[$elementName] = $entity;
  
          return $this;
      }
code: public function setChannelElement($elementName, $content, array $attributes = null, $multiple = false)
      {
          if (empty($elementName))
              throw new \InvalidArgumentException('The element name may not be empty or NULL.');
          if (!is_string($elementName))
              throw new \InvalidArgumentException('The element name must be a string.');
  
          $entity['content'] = $content;
          $entity['attributes'] = $attributes;
  
          if ($multiple === TRUE)
              $this->channels[$elementName][] = $entity;
          else
              $this->channels[$elementName] = $entity;
  
          return $this;
      }
code_tokens: public function setChannelElement ( $ elementName , $ content , array $ attributes = null , $ multiple = false ) { if ( empty ( $ elementName ) ) throw new \ InvalidArgumentException ( 'The element name may not be empty or NULL.' ) ; if ( ! is_string ( $ elementName ) ) throw new \ InvalidArgumentException ( 'The element name must be a string.' ) ; $ entity [ 'content' ] = $ content ; $ entity [ 'attributes' ] = $ attributes ; if ( $ multiple === TRUE ) $ this -> channels [ $ elementName ] [ ] = $ entity ; else $ this -> channels [ $ elementName ] = $ entity ; return $ this ; }
docstring: Add a channel element to the feed.
  
  @access   public
  @param    string $elementName name of the channel tag
  @param    string $content content of the channel tag
  @param    array   array of element attributes with attribute name as array key
  @param    bool    TRUE if this element can appear multiple times
  @return   self
  @throws   \InvalidArgumentException if the element name is not a string, empty or NULL.
docstring_tokens: Add a channel element to the feed .