function __construct(phpMorphy_Fsa_Interface $fsa) { $this->fsa = $fsa; $this->root = $fsa->getRootTrans(); }
function __construct(phpMorphy_Fsa_Interface $fsa, phpMorphy_Morphier_Helper $helper) { $this->fsa = $fsa; $this->root_trans = $fsa->getRootTrans(); $this->helper = clone $helper; $this->helper->setAnnotDecoder($this->createAnnotDecoder($helper)); $this->graminfo = $helper->getGramInfo(); }