setMapping() public méthode

Define renaming from Source to Target property.
public setMapping ( string $sourcePropertyName, string $targetPropertyName ) : PropertyMappingConfiguration
$sourcePropertyName string
$targetPropertyName string
Résultat 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'));
 }