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); } }
/** * @return Iterator over objects of phpMorphy_Dict_Ancode */ public function getAncodes() { $result = $this->object->getAncodes(); return $result === $this->object ? $this : $result; }