getName() 공개 메소드

returns translated property name.
public getName ( string $key ) : string
$key string
리턴 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);
 }
예제 #2
0
 /**
  * returns translated property name.
  *
  * @param $propertyName
  *
  * @return string
  */
 protected function getPropertyName($propertyName)
 {
     return $this->translatedProperties->getName($propertyName);
 }