src/LdapTools/Object/LdapObject.php
public function add($attribute, ...$values)
    {
        foreach ($values as $value) {
            if ($this->has($attribute)) {
                $attribute = $this->resolveAttributeName($attribute);
                $this->attributes[$attribute] = $this->addAttributeValue($this->attributes[$attribute], $value);
            } else {
                $this->attributes[$attribute] = $value;
            }
            $this->batches->add(new Batch(Batch::TYPE['ADD'], $attribute, $value));
        }

        return $this;
    }
public function add($attribute, ...$values)
    {
        foreach ($values as $value) {
            if ($this->has($attribute)) {
                $attribute = $this->resolveAttributeName($attribute);
                $this->attributes[$attribute] = $this->addAttributeValue($this->attributes[$attribute], $value);
            } else {
                $this->attributes[$attribute] = $value;
            }
            $this->batches->add(new Batch(Batch::TYPE['ADD'], $attribute, $value));
        }

        return $this;
    }
public function add ( $ attribute , ... $ values ) { foreach ( $ values as $ value ) { if ( $ this -> has ( $ attribute ) ) { $ attribute = $ this -> resolveAttributeName ( $ attribute ) ; $ this -> attributes [ $ attribute ] = $ this -> addAttributeValue ( $ this -> attributes [ $ attribute ] , $ value ) ; } else { $ this -> attributes [ $ attribute ] = $ value ; } $ this -> batches -> add ( new Batch ( Batch :: TYPE [ 'ADD' ] , $ attribute , $ value ) ) ; } return $ this ; }
Add an additional value, or values, to an attribute.

@param string $attribute
@param mixed[] ...$values
@return $this
Add an additional value or values to an attribute .