src/InvocationLocator.php
protected function availableInvocations(string $signature = ''): \Generator
    {
        $signature = strtolower(trim($signature, '\\'));
        foreach ($this->availableReflections() as $reflection) {
            foreach ($reflection->getInvocations() as $invocation) {
                if (
                    !empty($signature)
                    && strtolower(trim($invocation->getName(), '\\')) != $signature
                ) {
                    continue;
                }

                yield $invocation;
            }
        }
    }
protected function availableInvocations(string $signature = ''): \Generator
    {
        $signature = strtolower(trim($signature, '\\'));
        foreach ($this->availableReflections() as $reflection) {
            foreach ($reflection->getInvocations() as $invocation) {
                if (
                    !empty($signature)
                    && strtolower(trim($invocation->getName(), '\\')) != $signature
                ) {
                    continue;
                }

                yield $invocation;
            }
        }
    }
protected function availableInvocations ( string $ signature = '' ) : \ Generator { $ signature = strtolower ( trim ( $ signature , '\\' ) ) ; foreach ( $ this -> availableReflections ( ) as $ reflection ) { foreach ( $ reflection -> getInvocations ( ) as $ invocation ) { if ( ! empty ( $ signature ) && strtolower ( trim ( $ invocation -> getName ( ) , '\\' ) ) != $ signature ) { continue ; } yield $ invocation ; } } }
Invocations available in finder scope.

@param string $signature Method or function signature (name), for pre-filtering.
@return ReflectionInvocation[]|\Generator
Invocations available in finder scope .