Overtrue\Pinyin\GeneratorFileDictLoader::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $path )
$path string
    public function __construct($path)
    {
        $this->path = $path;
        for ($i = 0; $i < 100; ++$i) {
            $segment = $this->path . '/' . sprintf($this->segmentName, $i);
            if (file_exists($segment) && is_file($segment)) {
                array_push($this->handles, $this->openFile($segment));
            }
        }
    }