Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Jul 15, 2024
1 parent a50e4cd commit e4d2a9b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lam/lib/import.inc
Original file line number Diff line number Diff line change
Expand Up @@ -746,4 +746,22 @@ class ReplaceAttributesTask implements ImporterTask {
throw new LAMException(sprintf(_('Was unable to create DN: %s.'), $this->dn), getExtendedLDAPErrorMessage($ldap));
}

/**
* Returns the DN. Used for unit test.
*
* @return string DN
*/
public function getDn(): string {
return $this->dn;
}

/**
* Returns the attributes to add. Used for unit test.
*
* @return array[] attributes (array('attr' => array('val1', 'val2')))
*/
public function getAttributes(): array {
return $this->attributes;
}

}

0 comments on commit e4d2a9b

Please sign in to comment.