setType($type) ; $creditHistory->setUserMerchant($userMerchant) ; return $creditHistory; } }