Exemplo n.º 1
0
 function __construct(phpMorphy_Dict_Source_SourceInterface $source)
 {
     $this->helper = phpMorphy_Dict_GramTab_ConstStorage_Factory::create($source->getLanguage());
     foreach ($source->getAncodes() as $ancode) {
         $this->ancodes[] = $this->createAncode($ancode);
     }
 }
Exemplo n.º 2
0
 /**
  * @return Iterator over objects of phpMorphy_Dict_Ancode
  */
 public function getAncodes()
 {
     $result = $this->object->getAncodes();
     return $result === $this->object ? $this : $result;
 }