コード例 #1
0
ファイル: Helper.php プロジェクト: Garcy111/Garcy-Framework-2
 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();
 }
コード例 #2
0
 /**
  * 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;
 }