Example #1
0
 /**
  * 更换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;
 }
Example #2
0
 public function randString($length = 6)
 {
     $string = Word::randString($length);
     $this->app->writeln($string);
 }
Example #3
0
 function refresh()
 {
     $AB = Word::randString($this->phrase_size);
     $this->builder->setPhrase($AB);
     return $this;
 }