function bindUserEntity($userEntity)
{
    if ($userEntity != null) {
        $userDto = new UserDto();
        $userDto->setUserId($userEntity->getUserId());
        $userDto->setUserEmail($userEntity->getUserEmail());
        $userDto->setUserPassword($userEntity->getUserPassword());
        $userDto->setUserName($userEntity->getUserName());
        $userDto->setUserSurname($userEntity->getUserSurname());
        $userDto->setUserNumber($userEntity->getUserNumber());
        $userDto->setUserGender($userEntity->getUserGender());
        $userDto->setUserAge($userEntity->getUserAge());
        $userDto->setUserAllowPush($userEntity->getUserAllowPush());
        return $userDto;
    } else {
        return null;
    }
}