src/LdapTools/Ldif/Entry/LdifEntryAdd.php
public function addAttribute($attribute, $value)
    {
        $value = is_array($value) ? $value : [$value];

        if (!isset($this->attributes[$attribute])) {
            $this->attributes[$attribute] = [];
        }
        foreach ($value as $attrValue) {
            $this->attributes[$attribute][] = $attrValue;
        }

        return $this;
    }
public function addAttribute($attribute, $value)
    {
        $value = is_array($value) ? $value : [$value];

        if (!isset($this->attributes[$attribute])) {
            $this->attributes[$attribute] = [];
        }
        foreach ($value as $attrValue) {
            $this->attributes[$attribute][] = $attrValue;
        }

        return $this;
    }
public function addAttribute ( $ attribute , $ value ) { $ value = is_array ( $ value ) ? $ value : [ $ value ] ; if ( ! isset ( $ this -> attributes [ $ attribute ] ) ) { $ this -> attributes [ $ attribute ] = [ ] ; } foreach ( $ value as $ attrValue ) { $ this -> attributes [ $ attribute ] [ ] = $ attrValue ; } return $ this ; }
Add an attribute that will be added to the entry going to LDAP.

@param string $attribute
@param mixed $value
@return $this
Add an attribute that will be added to the entry going to LDAP .