setMapping() 공개 메소드

Define renaming from Source to Target property.
public setMapping ( string $sourcePropertyName, string $targetPropertyName ) : PropertyMappingConfiguration
$sourcePropertyName string
$targetPropertyName string
리턴 PropertyMappingConfiguration this
 /**
  * @test
  */
 public function getTargetPropertyNameShouldRespectMapping()
 {
     $this->propertyMappingConfiguration->setMapping('k1', 'k1a');
     $this->assertEquals('k1a', $this->propertyMappingConfiguration->getTargetPropertyName('k1'));
     $this->assertEquals('k2', $this->propertyMappingConfiguration->getTargetPropertyName('k2'));
 }