src/Api/FilterCollectionFactory.php
public function createFilterCollectionFromLocator(ContainerInterface $filterLocator): FilterCollection
    {
        $filters = [];

        foreach ($this->filtersIds as $filterId) {
            if ($filterLocator->has($filterId)) {
                $filters[$filterId] = $filterLocator->get($filterId);
            }
        }

        return new FilterCollection($filters);
    }
public function createFilterCollectionFromLocator(ContainerInterface $filterLocator): FilterCollection
    {
        $filters = [];

        foreach ($this->filtersIds as $filterId) {
            if ($filterLocator->has($filterId)) {
                $filters[$filterId] = $filterLocator->get($filterId);
            }
        }

        return new FilterCollection($filters);
    }
public function createFilterCollectionFromLocator ( ContainerInterface $ filterLocator ) : FilterCollection { $ filters = [ ] ; foreach ( $ this -> filtersIds as $ filterId ) { if ( $ filterLocator -> has ( $ filterId ) ) { $ filters [ $ filterId ] = $ filterLocator -> get ( $ filterId ) ; } } return new FilterCollection ( $ filters ) ; }
Creates a filter collection from a filter locator.
Creates a filter collection from a filter locator .