function __construct(phpMorphy_GramInfo_GramInfoInterface $graminfo, phpMorphy_GramTab_GramTabInterface $gramtab, phpMorphy_AncodesResolver_AncodesResolverInterface $ancodesResolver, $isResolvePartOfSpeech)
 {
     $this->graminfo = $graminfo;
     $this->gramtab = $gramtab;
     $this->is_resolve_pos = (bool) $isResolvePartOfSpeech;
     $this->ancodes_resolver = $ancodesResolver;
     $this->end_of_string = $graminfo->getEnds();
 }
 /**
  * Return end of string value (usually string with \0 value of char_size + 1 length)
  * @return string
  */
 public function getEnds()
 {
     $result = $this->object->getEnds();
     return $result === $this->object ? $this : $result;
 }