Adldap\Objects\DistinguishedName::setSchema PHP Method

setSchema() public method

Sets the schema for the distinguished name.
public setSchema ( Adldap\Schemas\SchemaInterface $schema = null ) : DistinguishedName
$schema Adldap\Schemas\SchemaInterface
return DistinguishedName
    public function setSchema(SchemaInterface $schema = null)
    {
        $this->schema = $schema ?: new ActiveDirectory();
        return $this;
    }