@@ -40,6 +40,22 @@ public function __construct(User_Proxy $userProxy) {
40
40
$ this ->userProxy = $ userProxy ;
41
41
}
42
42
43
+ /**
44
+ * Get the pointer's position. This method isn't part of the interface and
45
+ * it's expected to be used only for testing
46
+ */
47
+ public function getPointer () {
48
+ return $ this ->pointer ;
49
+ }
50
+
51
+ /**
52
+ * Get the cached user data. This method isn't part of the interface and
53
+ * it's expected to be used only for testing
54
+ */
55
+ public function getCachedUserData () {
56
+ return $ this ->cachedUserData ;
57
+ }
58
+
43
59
/**
44
60
* @inheritDoc
45
61
*/
@@ -97,7 +113,7 @@ public function getNextUser(): ?SyncingUser {
97
113
$ email = $ userEntry ->getEMailAddress ();
98
114
$ home = $ userEntry ->getHome ();
99
115
$ searchTerms = $ userEntry ->getSearchTerms ();
100
- } catch (\Exception $ e ) {
116
+ } catch (\Exception $ ex ) {
101
117
throw new SyncBackendUserFailedException ("Can't sync user with dn {$ userEntry ->getDN ()}" , 1 , $ ex );
102
118
}
103
119
@@ -141,7 +157,7 @@ public function getSyncingUser(string $id): ?SyncingUser {
141
157
$ email = $ userEntry ->getEMailAddress ();
142
158
$ home = $ userEntry ->getHome ();
143
159
$ searchTerms = $ userEntry ->getSearchTerms ();
144
- } catch (\Exception $ e ) {
160
+ } catch (\Exception $ ex ) {
145
161
throw new SyncBackendUserFailedException ("Can't sync user with dn {$ userEntry ->getDN ()}" , 1 , $ ex );
146
162
}
147
163
0 commit comments