src/Sulu/Component/Content/Mapper/Translation/MultipleTranslatedProperties.php
public function getName($key)
    {
        // templates do not translate the template key
        if (Structure::TYPE_SNIPPET === $this->structureType) {
            if ('template' === $key) {
                return $key;
            }
        }

        if (isset($this->translatedProperties[$key])) {
            return $this->translatedProperties[$key]->getName();
        } else {
            throw new NoSuchPropertyException($key);
        }
    }
public function getName($key)
    {
        // templates do not translate the template key
        if (Structure::TYPE_SNIPPET === $this->structureType) {
            if ('template' === $key) {
                return $key;
            }
        }

        if (isset($this->translatedProperties[$key])) {
            return $this->translatedProperties[$key]->getName();
        } else {
            throw new NoSuchPropertyException($key);
        }
    }
public function getName ( $ key ) { // templates do not translate the template key if ( Structure :: TYPE_SNIPPET === $ this -> structureType ) { if ( 'template' === $ key ) { return $ key ; } } if ( isset ( $ this -> translatedProperties [ $ key ] ) ) { return $ this -> translatedProperties [ $ key ] -> getName ( ) ; } else { throw new NoSuchPropertyException ( $ key ) ; } }
returns translated property name.

@param string $key

@throws \Sulu\Component\Content\Exception\NoSuchPropertyException

@return string
returns translated property name .