/**
* @param LdifEntryModDn $entry
* @param string $key
* @param string $value
* @throws LdifParserException
*/
protected function addModDnDirective(LdifEntryModDn $entry, $key, $value)
{
$this->validateDirectiveInChange(LdifEntryInterface::TYPE_MODDN, $key);
if ($key == LdifEntryModDn::DIRECTIVE_DELETEOLDRDN) {
$entry->setDeleteOldRdn($this->getBoolFromStringInt($value));
} elseif ($key == LdifEntryModDn::DIRECTIVE_NEWRDN) {
$entry->setNewRdn($value);
} elseif ($key == LdifEntryModDn::DIRECTIVE_NEWSUPERIOR) {
$entry->setNewLocation($value);
}
}