original_string: public function setAttribute($key, $value)
  	{
  		if ($value instanceof BaseModel || $value instanceof Collection)
  			$this->setRelationship($value, $key);
  		elseif ( !is_array($value))
  			$this->attributes[$key] = $value;
  		else
  			$this->setRelationship($value, $key);
  	}
code: public function setAttribute($key, $value)
  	{
  		if ($value instanceof BaseModel || $value instanceof Collection)
  			$this->setRelationship($value, $key);
  		elseif ( !is_array($value))
  			$this->attributes[$key] = $value;
  		else
  			$this->setRelationship($value, $key);
  	}
code_tokens: public function setAttribute ( $ key , $ value ) { if ( $ value instanceof BaseModel || $ value instanceof Collection ) $ this -> setRelationship ( $ value , $ key ) ; elseif ( ! is_array ( $ value ) ) $ this -> attributes [ $ key ] = $ value ; else $ this -> setRelationship ( $ value , $ key ) ; }
docstring: Sets the attributes for this model
  
  @param mixed $key
  @param mixed $value
docstring_tokens: Sets the attributes for this model