LdapTools\Ldif\Entry\LdifEntryAdd::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $dn = null, array $attributes = [] )
$dn string
$attributes array
    public function __construct($dn = null, $attributes = [])
    {
        $this->dn = $dn;
        if (!empty($attributes)) {
            $this->setAttributes($attributes);
        }
        $this->changeType = self::TYPE_ADD;
    }