| 123456789101112131415161718192021222324252627282930 | <?phpdeclare(strict_types=1);namespace app\facade;use think\Facade;/** * @see \app\utils\StringUtils * @package app\facade * @mixin \app\utils\StringUtils * @method static bool startsWith(string $string, string $subString) 判断$string开头是否包含$subString * @method static bool endsWith(string $string, string $subString) 判断$string末尾是否包含$subString * @method static string camelizeFirstOn(string $string, $separator = '_') 下划线转驼峰(首字母大写) * @method static string camelize(string $string, $separator = '_')下划线转驼峰(首字母小写) * @method static string uncamelize($camelCaps, $separator = '_') 驼峰命名转下划线命名 * @method static string generate_stochastic_string(int $length = 16) 生成随机字符串 */class StringFacade extends Facade{       /**    * 获取当前Facade对应类名(或者已经绑定的容器对象标识)    * @access protected    * @return string    */    protected static function getFacadeClass()    {        return 'app\utils\StringUtils';    }}
 |