activity/object/object.php
public function setAttributes(array $attribs = array(), $merge = true)
    {
        if ($merge) {
            $this->attributes = array_merge($this->attributes, $attribs);
        } else {
            $this->attributes = $attribs;
        }

        return $this;
    }
public function setAttributes(array $attribs = array(), $merge = true)
    {
        if ($merge) {
            $this->attributes = array_merge($this->attributes, $attribs);
        } else {
            $this->attributes = $attribs;
        }

        return $this;
    }
public function setAttributes ( array $ attribs = array ( ) , $ merge = true ) { if ( $ merge ) { $ this -> attributes = array_merge ( $ this -> attributes , $ attribs ) ; } else { $ this -> attributes = $ attribs ; } return $ this ; }
Set the attributes.

@param array $attributes The attributes.
@param bool  $merge      Tells if attributes should be replaced or merged with current existing attributes.
@return ComActivitiesActivityObject
Set the attributes .