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); } }