protected function _map(SearchOutput $s, Column $col) { if ($s->NAME === $col) { return 'name'; } throw new \Exception("Unknown column provided."); }