LdapTools\Ldif\Entry\LdifEntryInterface::getType PHP Method

getType() public method

Get the LDAP object type this entry represents. See 'setType()' for more information.
public getType ( ) : string | null
return string | null
    public function getType();

Usage Example

示例#1
0
 /**
  * @param LdifEntryInterface $entry
  */
 protected function setupEntry(LdifEntryInterface $entry)
 {
     if (!is_null($entry->getType()) && $entry instanceof SchemaAwareInterface) {
         $entry->setLdapObjectSchema($this->getSchemaForType($entry->getType()));
     }
     if ($entry instanceof LdapAwareInterface) {
         $entry->setLdapConnection($this->connection);
     }
     $entry->setLineEnding($this->lineEnding);
     $entry->setLineFolding($this->lineFolding);
     $entry->setMaxLineLength($this->maxLineLength);
 }