private function initFilterTypes()
    {
        $this->filterTypes = [];

        foreach ($this->loadFilterTypes() as $type) {
            if (!$type instanceof FilterTypeInterface) {
                throw new UnexpectedTypeException($type, FilterTypeInterface::class);
            }

            $this->filterTypes[get_class($type)] = $type;
        }
    }
private function initFilterTypes()
    {
        $this->filterTypes = [];

        foreach ($this->loadFilterTypes() as $type) {
            if (!$type instanceof FilterTypeInterface) {
                throw new UnexpectedTypeException($type, FilterTypeInterface::class);
            }

            $this->filterTypes[get_class($type)] = $type;
        }
    }
private function initFilterTypes ( ) { $ this -> filterTypes = [ ] ; foreach ( $ this -> loadFilterTypes ( ) as $ type ) { if ( ! $ type instanceof FilterTypeInterface ) { throw new UnexpectedTypeException ( $ type , FilterTypeInterface :: class ) ; } $ this -> filterTypes [ get_class ( $ type ) ] = $ type ; } }
Initializes the filter types.

@throws UnexpectedTypeException if any registered type is not an instance of FilterTypeInterface
Initializes the filter types .