ListClassesInDirectory
in package
Class ListClassesInDirectory
List classes with directories or files.
Tags
Table of Contents
- listClassesInDirectories() : iteratable<string|int, string>
- get a list of all classes in the given directories.
- listClassesInDirectory() : iteratable<string|int, string>
- get a list of all classes in the given directory.
- listClassesInFile() : iteratable<string|int, string>
- get a list of all classes in the given file.
- listClassesInFiles() : iteratable<string|int, string>
- get a list of all classes in the given files.
- listInstantiatableClassesInDirectory() : iteratable<string|int, string>
- listNonInstantiatableClassesInDirectories() : iteratable<string|int, string>
- listNonInstantiatableClassesInDirectory() : iteratable<string|int, string>
- listInstantiatableClassesInDirectories() : iteratable<string|int, string>
Methods
listClassesInDirectories()
get a list of all classes in the given directories.
public
listClassesInDirectories(string ...$directories) : iteratable<string|int, string>
Based on: https://github.com/Roave/BetterReflection/blob/396a07c9d276cb9ffba581b24b2dadbb542d542e/demo/parsing-whole-directory/example2.php.
Parameters
- $directories : string
Return values
iteratable<string|int, string> —listClassesInDirectory()
get a list of all classes in the given directory.
public
listClassesInDirectory(string $directory) : iteratable<string|int, string>
Parameters
- $directory : string
Return values
iteratable<string|int, string> —listClassesInFile()
get a list of all classes in the given file.
public
listClassesInFile(string $file) : iteratable<string|int, string>
Parameters
- $file : string
Return values
iteratable<string|int, string> —listClassesInFiles()
get a list of all classes in the given files.
public
listClassesInFiles(string ...$files) : iteratable<string|int, string>
Parameters
- $files : string
Return values
iteratable<string|int, string> —listInstantiatableClassesInDirectory()
public
listInstantiatableClassesInDirectory(string $directory) : iteratable<string|int, string>
Parameters
- $directory : string
Return values
iteratable<string|int, string> —listNonInstantiatableClassesInDirectories()
public
listNonInstantiatableClassesInDirectories(string ...$directories) : iteratable<string|int, string>
Parameters
- $directories : string
Return values
iteratable<string|int, string> —listNonInstantiatableClassesInDirectory()
public
listNonInstantiatableClassesInDirectory(string $directory) : iteratable<string|int, string>
Parameters
- $directory : string
Return values
iteratable<string|int, string> —listInstantiatableClassesInDirectories()
protected
listInstantiatableClassesInDirectories(string ...$directories) : iteratable<string|int, string>
Parameters
- $directories : string