/** * 更换phrase */ public function refresh($phrase_size = 0) { if ($phrase_size) { $this->phrase_size = $phrase_size; } $phrase = Word::randString($this->phrase_size); $this->builder->setPhrase($phrase); return $this; }
public function randString($length = 6) { $string = Word::randString($length); $this->app->writeln($string); }
function refresh() { $AB = Word::randString($this->phrase_size); $this->builder->setPhrase($AB); return $this; }