PHP 클래스 Overtrue\Pinyin\MemoryFileDictLoader

상속: implements Overtrue\Pinyin\DictLoaderInterface
파일 보기 프로젝트 열기: overtrue/pinyin

보호된 프로퍼티들

프로퍼티 타입 설명
$path string Data directory.
$segmentName string Words segment name.
$segments array Segment files.
$surnames array Surname cache.

공개 메소드들

메소드 설명
__construct ( string $path ) Constructor.
map ( Closure $callback ) Load dict.
mapSurname ( Closure $callback ) Load surname dict.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $path )
$path string

map() 공개 메소드

Load dict.
public map ( Closure $callback )
$callback Closure

mapSurname() 공개 메소드

Load surname dict.
public mapSurname ( Closure $callback )
$callback Closure

프로퍼티 상세

$path 보호되어 있는 프로퍼티

Data directory.
protected string $path
리턴 string

$segmentName 보호되어 있는 프로퍼티

Words segment name.
protected string $segmentName
리턴 string

$segments 보호되어 있는 프로퍼티

Segment files.
protected array $segments
리턴 array

$surnames 보호되어 있는 프로퍼티

Surname cache.
protected array $surnames
리턴 array