private function filterPragmasByToken($token, Pragma\PragmaCollection $pragmas, array $scopedPragmas)
    {
        foreach ($pragmas as $pragma) {
            if (in_array($pragma->getName(), $scopedPragmas, true)
                && $pragma->handlesToken($token)
            ) {
                yield $pragma;
            }
        }
    }
private function filterPragmasByToken($token, Pragma\PragmaCollection $pragmas, array $scopedPragmas)
    {
        foreach ($pragmas as $pragma) {
            if (in_array($pragma->getName(), $scopedPragmas, true)
                && $pragma->handlesToken($token)
            ) {
                yield $pragma;
            }
        }
    }
private function filterPragmasByToken ( $ token , Pragma \ PragmaCollection $ pragmas , array $ scopedPragmas ) { foreach ( $ pragmas as $ pragma ) { if ( in_array ( $ pragma -> getName ( ) , $ scopedPragmas , true ) && $ pragma -> handlesToken ( $ token ) ) { yield $ pragma ; } } }
Generator for filtering pragmas by those matching a given token.

@param string $token
@param Pragma\PragmaCollection $pragmas
@return Pragma\PragmaInterface
Generator for filtering pragmas by those matching a given token .