class Psr0FindFile implements ClassFinderInterface (View source)

Finds a class in a PSR-0 structure.

Properties

protected string[][] $prefixes The PSR-0 prefixes.

Methods

__construct(string[][] $prefixes)

No description

string|null
findFile(string $class)

Finds a class.

Details

__construct(string[][] $prefixes)

Parameters

string[][] $prefixes An array of prefixes. Each key is a PHP namespace and each value is a list of directories.

string|null findFile(string $class)

Finds a class.

Parameters

string $class The name of the class.

Return Value

string|null The name of the class or NULL if not found.