original_string: public function setAttributes(array $data)
  	{
  		$data = $this->stripResponseData($data);
  
  		foreach ($data as $key => $value) {
  			$this->setAttribute($key, $value);
  		}
  
  		return $this->getAttributes();
  	}
code: public function setAttributes(array $data)
  	{
  		$data = $this->stripResponseData($data);
  
  		foreach ($data as $key => $value) {
  			$this->setAttribute($key, $value);
  		}
  
  		return $this->getAttributes();
  	}
code_tokens: public function setAttributes ( array $ data ) { $ data = $ this -> stripResponseData ( $ data ) ; foreach ( $ data as $ key => $ value ) { $ this -> setAttribute ( $ key , $ value ) ; } return $ this -> getAttributes ( ) ; }
docstring: Set all the attributes from an array.
  
  @param array $data
docstring_tokens: Set all the attributes from an array .