LdapTools\Ldif\LdifParser::getLdifEntryObject PHP Method

getLdifEntryObject() protected method

Get the LdifEntry for the changetype.
protected getLdifEntryObject ( string $dn, string $changeType ) : LdapTools\Ldif\Entry\LdifEntryInterface
$dn string
$changeType string
return LdapTools\Ldif\Entry\LdifEntryInterface
    protected function getLdifEntryObject($dn, $changeType)
    {
        if (!array_key_exists($changeType, $this->changeTypeMap)) {
            $this->throwException(sprintf('The changetype "%s" is invalid', $changeType));
        }
        return new $this->changeTypeMap[$changeType]($dn);
    }