protected function assignMemberVariables(array $data) { foreach ($data as $key => $value) { $this->{$key} = $value; } }