\Overtrue\PinyinFileDictLoader

Summary

Methods
Properties
Constants
__construct()
map()
mapSurname()
No public properties found
No constants found
No protected methods found
$segmentName
$path
N/A
No private methods found
No private properties found
N/A

Properties

$segmentName

$segmentName : string

Words segment name.

Type

string

$path

$path : string

Dict path.

Type

string

Methods

__construct()

__construct(string  $path) : mixed

Constructor.

Parameters

string $path

Returns

mixed —

map()

map(\Closure  $callback) : mixed

Load dict.

Parameters

\Closure $callback

Returns

mixed —

mapSurname()

mapSurname(\Closure  $callback) : mixed

Load surname dict.

Parameters

\Closure $callback

Returns

mixed —