Property | Type | Description | |
---|---|---|---|
$handles | array | SplFileObjects. | |
$path | string | Data directory. | |
$segmentName | string | Words segment name. |
Method | Description | |
---|---|---|
__construct ( string $path ) | Constructor. | |
map ( Closure $callback ) | Load dict. | |
mapSurname ( Closure $callback ) | Load surname dict. |
Method | Description | |
---|---|---|
getGenerator ( array $handles ) | get Generator syntax. | |
openFile ( string $filename, $mode = 'r' ) : SplFileObject | Construct a new file object. |
protected getGenerator ( array $handles ) | ||
$handles | array | SplFileObjects |
public mapSurname ( Closure $callback ) | ||
$callback | Closure |