/** * @param string $word * @param int $maxVariants * @param string $article * @return ArticleWord */ public static function stemm($word, $maxVariants = null, &$article = null) { /* @var ArticleWord $word */ $word = parent::stemm($word, $maxVariants); if ($article !== null) { $word->article =& $article; } return $word; }