/**
  * Read state at given index
  *
  * @param int $index
  * @return array
  */
 public function readState($index)
 {
     $result = $this->object->readState($index);
     return $result === $this->object ? $this : $result;
 }
Beispiel #2
0
 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);
 }