I Use Jane Automapper for mapping 2 objects.
class targetObject { private $test1; private $test2; public getTest1() { return $this->test1;