protected addDirectiveToEntry ( string $key, string $value, LdapTools\Ldif\Entry\LdifEntryInterface $entry ) | ||
$key | string | |
$value | string | |
$entry | LdapTools\Ldif\Entry\LdifEntryInterface |
protected function addDirectiveToEntry($key, $value, LdifEntryInterface $entry)
{
if ($entry instanceof LdifEntryAdd) {
$entry->addAttribute($key, $value);
} elseif ($entry instanceof LdifEntryModDn) {
$this->addModDnDirective($entry, $key, $value);
} elseif ($entry instanceof LdifEntryModify) {
$this->addModifyDirective($entry, $key, $value);
}
}