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