private function load($data) { if (empty($data)) { throw new DataSift_Exception_InvalidData('No data found'); } //Assign the instance variables foreach ($data as $key => $value) { $this->{'_' . $key} = $value; } }