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 . '[]';
    }
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 . '[]';
    }
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 . '[]' ; }
Get element name

@param  ElementInterface $element
@throws Exception\DomainException
@return string
Get element name