original_string: protected static function getName( ElementInterface $element )
      {
          $name = $element->getName();
  
          if ( $name === null || $name === '' )
          {
              throw new Exception\DomainException( sprintf(
                  '%s requires that the element has an assigned name; none discovered',
                  __METHOD__
              ) );
          }
  
          return $name . '[]';
      }
code: protected static function getName( ElementInterface $element )
      {
          $name = $element->getName();
  
          if ( $name === null || $name === '' )
          {
              throw new Exception\DomainException( sprintf(
                  '%s requires that the element has an assigned name; none discovered',
                  __METHOD__
              ) );
          }
  
          return $name . '[]';
      }
code_tokens: protected static function getName ( ElementInterface $ element ) { $ name = $ element -> getName ( ) ; if ( $ name === null || $ name === '' ) { throw new Exception \ DomainException ( sprintf ( '%s requires that the element has an assigned name; none discovered' , __METHOD__ ) ) ; } return $ name . '[]' ; }
docstring: Get element name
  
  @param  ElementInterface $element
  @throws Exception\DomainException
  @return string
docstring_tokens: Get element name