Psr0FindFile
in package
implements
ClassFinderInterface
Finds a class in a PSR-0 structure.
Tags
Interfaces, Classes and Traits
- ClassFinderInterface
- Finds a class in a PSR-0 structure.
Table of Contents
- $prefixes : array<string|int, mixed>
- The PSR-0 prefixes.
- __construct() : mixed
- findFile() : string|null
- Finds a class.
Properties
$prefixes
The PSR-0 prefixes.
protected
array<string|int, mixed>
$prefixes
Methods
__construct()
public
__construct(array<string|int, mixed> $prefixes) : mixed
Parameters
- $prefixes : array<string|int, mixed>
-
An array of prefixes. Each key is a PHP namespace and each value is a list of directories.
Return values
mixed —findFile()
Finds a class.
public
findFile(mixed $class) : string|null
Parameters
- $class : mixed
-
The name of the class.
Return values
string|null —The name of the class or NULL if not found.