/** * Unpack transition from binary form to array * * @param string|string[] $rawTranses may be array for convert more than one transitions * @return array */ public function unpackTranses($rawTranses) { $result = $this->object->unpackTranses($rawTranses); return $result === $this->object ? $this : $result; }
function phpMorphy_Fsa_State(phpMorphy_Fsa_FsaInterface $fsa, $index) { $this->fsa = $fsa; $this->raw_transes = $fsa->readState($index); $this->transes = $fsa->unpackTranses($this->raw_transes); }