@@ -124,19 +124,19 @@ private function getConnectionResource()
124124 }
125125
126126/**
127- * @param string $dn Distinguished name tobatch modify
128- * @param iterable|UpdateOperation[] $modifications An array or iterable of Modification instances
127+ * @param string $dn Distinguished name toapply operations on
128+ * @param iterable|UpdateOperation[] $operations An array or iterable of Modification instances
129129 *
130130 * @throws UpdateOperationException in case of an error
131131 */
132- public function applyOperations (string $ dn ,iterable $ modifications ):void
132+ public function applyOperations (string $ dn ,iterable $ operations ):void
133133 {
134- $ modificationsMapped =array ();
135- foreach ($ modifications as $ modification ) {
136- $ modificationsMapped [] =$ modification ->toArray ();
134+ $ operationsMapped =array ();
135+ foreach ($ operations as $ modification ) {
136+ $ operationsMapped [] =$ modification ->toArray ();
137137 }
138138
139- if (!@ldap_modify_batch ($ this ->getConnectionResource (),$ dn ,$ modificationsMapped )) {
139+ if (!@ldap_modify_batch ($ this ->getConnectionResource (),$ dn ,$ operationsMapped )) {
140140throw new UpdateOperationException (sprintf ('Error executing batch modification on "%s": "%s". ' ,$ dn ,ldap_error ($ this ->getConnectionResource ())));
141141 }
142142 }