JpnForPhp\Transliterator\TransliterationSystem::__construct PHP Method

__construct() public method

Transliteration system's constructor
public __construct ( $file )
    public function __construct($file)
    {
        $this->configuration = Yaml::parse(file_get_contents($file));
    }

Usage Example

Example #1
0
 /**
  * Kana's constructor
  */
 public function __construct($system = '')
 {
     $file = __DIR__ . DIRECTORY_SEPARATOR . 'Kana' . DIRECTORY_SEPARATOR . ($system ? $system : 'hiragana') . '.yaml';
     parent::__construct($file);
 }