public function updateAttribute($attribute, $value, $sync = true)
    {
        if (
            $this->exists &&
            $this->query->getConnection()->modReplace($this->getDn(), [$attribute => $value])
        ) {
            if ($sync) {
                $this->syncRaw();
            }

            return true;
        }

        return false;
    }
public function updateAttribute($attribute, $value, $sync = true)
    {
        if (
            $this->exists &&
            $this->query->getConnection()->modReplace($this->getDn(), [$attribute => $value])
        ) {
            if ($sync) {
                $this->syncRaw();
            }

            return true;
        }

        return false;
    }
public function updateAttribute ( $ attribute , $ value , $ sync = true ) { if ( $ this -> exists && $ this -> query -> getConnection ( ) -> modReplace ( $ this -> getDn ( ) , [ $ attribute => $ value ] ) ) { if ( $ sync ) { $ this -> syncRaw ( ) ; } return true ; } return false ; }
Updates the specified attribute with the specified value.

@param string $attribute The attribute to modify
@param mixed  $value     The new value for the attribute
@param bool   $sync      Whether to re-sync all attributes

@return bool
Updates the specified attribute with the specified value .