public function create(Composer $composer): SymbolFilterInterface
    {
        /** @var SymbolFilterInterface[] $filters */
        $filters = array_map(
            function (string $exclusion) : SymbolFilterInterface {
                $filters = [
                    new ExactSymbolFilter($exclusion),
                    new PatternSymbolFilter($exclusion)
                ];

                if (preg_match('#\\\\$#', $exclusion)) {
                    $filters[] = new NamespaceSymbolFilter($exclusion);
                }

                return new SymbolFilterChain(...$filters);
            },
            $this->getExclusions($composer)
        );

        $filters[] = new UserDefinedSymbolFilter();

        return new SymbolFilterChain(...$filters);
    }
public function create(Composer $composer): SymbolFilterInterface
    {
        /** @var SymbolFilterInterface[] $filters */
        $filters = array_map(
            function (string $exclusion) : SymbolFilterInterface {
                $filters = [
                    new ExactSymbolFilter($exclusion),
                    new PatternSymbolFilter($exclusion)
                ];

                if (preg_match('#\\\\$#', $exclusion)) {
                    $filters[] = new NamespaceSymbolFilter($exclusion);
                }

                return new SymbolFilterChain(...$filters);
            },
            $this->getExclusions($composer)
        );

        $filters[] = new UserDefinedSymbolFilter();

        return new SymbolFilterChain(...$filters);
    }
public function create ( Composer $ composer ) : SymbolFilterInterface { /** @var SymbolFilterInterface[] $filters */ $ filters = array_map ( function ( string $ exclusion ) : SymbolFilterInterface { $ filters = [ new ExactSymbolFilter ( $ exclusion ) , new PatternSymbolFilter ( $ exclusion ) ] ; if ( preg_match ( '#\\\\$#' , $ exclusion ) ) { $ filters [ ] = new NamespaceSymbolFilter ( $ exclusion ) ; } return new SymbolFilterChain ( ... $ filters ) ; } , $ this -> getExclusions ( $ composer ) ) ; $ filters [ ] = new UserDefinedSymbolFilter ( ) ; return new SymbolFilterChain ( ... $ filters ) ; }
Create a symbol filter for the given Composer instance.

@param Composer $composer

@return SymbolFilterInterface
Create a symbol filter for the given Composer instance .