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(); }
/** * @abstract * @return array */ public function readAllAncodes() { $result = $this->object->readAllAncodes(); return $result === $this->object ? $this : $result; }