Documentation

ClassMapGenerator
in package

ClassMapGenerator.

Tags
author

Gyula Sallai salla016@gmail.com

deprecated

since version 3.3, to be removed in 4.0.

Table of Contents

createMap()  : array<string|int, mixed>
Iterate over all files in the given directory searching for classes.
dump()  : mixed
Generate a class map file.
findClasses()  : array<string|int, mixed>
Extract the classes in the given file.

Methods

createMap()

Iterate over all files in the given directory searching for classes.

public static createMap(Iterator|string $dir) : array<string|int, mixed>
Parameters
$dir : Iterator|string

The directory to search in or an iterator

Return values
array<string|int, mixed>

A class map array

dump()

Generate a class map file.

public static dump(array<string|int, mixed>|string $dirs, string $file) : mixed
Parameters
$dirs : array<string|int, mixed>|string

Directories or a single path to search in

$file : string

The name of the class map file

Return values
mixed

findClasses()

Extract the classes in the given file.

private static findClasses(string $path) : array<string|int, mixed>
Parameters
$path : string

The file to check

Return values
array<string|int, mixed>

The found classes

Search results