create() public method

Specify the object type to create. Either by its string name type from the schema of the LdapObjectSchema.
public create ( string | LdapObjectSchema $type )
$type string | LdapTools\Schema\LdapObjectSchema
Example #1
0
 /**
  * Get a LdapObjectCreator object.
  *
  * @param string|null $type
  * @return LdapObjectCreator
  */
 public function createLdapObject($type = null)
 {
     $creator = new LdapObjectCreator($this->getConnection(), $this->getSchemaFactory(), $this->config->getEventDispatcher());
     if ($type) {
         $creator->create($type);
     }
     return $creator;
 }