public function getSearchTermForAttribute($attribute, $default = '') { if (array_key_exists($attribute, $this->searchTerms)) { return $this->searchTerms[$attribute]; } return $default; }