getName() public method

returns translated property name.
public getName ( string $key ) : string
$key string
return string
 /**
  * @dataProvider provideGetName
  */
 public function testGetName($structureType, $name, $expectedName)
 {
     $this->properties->setLanguage('de');
     $this->properties->setStructureType($structureType);
     $res = $this->properties->getName($name);
     $this->assertEquals($expectedName, $res);
 }
Esempio n. 2
0
 /**
  * returns translated property name.
  *
  * @param $propertyName
  *
  * @return string
  */
 protected function getPropertyName($propertyName)
 {
     return $this->translatedProperties->getName($propertyName);
 }