Stackdriver Debugger Client - Class MatchingFileIterator (1.7.0)

Reference documentation and code samples for the Stackdriver Debugger Client class MatchingFileIterator.

This iterator returns files that match the provided file in the provided search path.

Example:

$iterator = new MatchingFileIterator('.', 'Debugger/src/DebuggerClient.php');
$matches = iterator_to_array($iterator);

Namespace

Google \ Cloud \ Debugger

Methods

__construct

Create a new MatchingFileIterator.

Parameters
NameDescription
searchPath string

The root path to search in

file string

The file to search for

accept

FilterIterator callback to determine whether or not the value should be accepted.

Returns
TypeDescription
bool