protected function searchInTypes(array $types) { foreach ($types as $type) { $this->types[] = $type; } // Remove doubles. $this->types = array_unique($this->types); }