public function setAttributes(array $data)
	{
		$data = $this->stripResponseData($data);

		foreach ($data as $key => $value) {
			$this->setAttribute($key, $value);
		}

		return $this->getAttributes();
	}
public function setAttributes(array $data)
	{
		$data = $this->stripResponseData($data);

		foreach ($data as $key => $value) {
			$this->setAttribute($key, $value);
		}

		return $this->getAttributes();
	}
public function setAttributes ( array $ data ) { $ data = $ this -> stripResponseData ( $ data ) ; foreach ( $ data as $ key => $ value ) { $ this -> setAttribute ( $ key , $ value ) ; } return $ this -> getAttributes ( ) ; }
Set all the attributes from an array.

@param array $data
Set all the attributes from an array .