PhraseBuilderInterface.php (365B)
1 <?php 2 3 namespace Gregwar\Captcha; 4 5 /** 6 * Interface for the PhraseBuilder 7 * 8 * @author Gregwar <g.passault@gmail.com> 9 */ 10 interface PhraseBuilderInterface 11 { 12 /** 13 * Generates random phrase of given length with given charset 14 */ 15 public function build($length, $charset); 16 17 /** 18 * "Niceize" a code 19 */ 20 public function niceize($str); 21 }