Skip to content

Commit 8bc3cf9

Browse files
committed
add method tag dock block
1 parent 4d61889 commit 8bc3cf9

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

src/Facade/StrUtility.php

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,74 @@
1414

1515
use dvlpr1996\PhpStringHelpers\Facade\Facade;
1616

17+
/**
18+
* @method static string toCamelCase(string $words)
19+
* @method static string toPascalCase(string $words)
20+
* @method static string toKebabCase(string $words)
21+
* @method static string toTitleCase(string $words)
22+
* @method static string toConstant(string $words)
23+
* @method static string toSnakeCase(string $words)
24+
* @method static string toPathCase(string $words)
25+
* @method static string toAdaCase(string $words)
26+
* @method static string dotNotation(string $words)
27+
* @method static string entitiesWrapper($data)
28+
* @method static string toSlug(string $string)
29+
* @method static string rmAllBlanks(string $string)
30+
* @method static string alternate(?string $string, string $alternate = null)
31+
* @method static string|array translate(string $key, string $alternative = '')
32+
* @method static string wrapper(int|string $string, int|string $wrapper = '*')
33+
* @method static string filePath(string $path, string $pathExtension = 'php')
34+
* @method static int generatePin(int $length = 4)
35+
* @method static string clearString(string $data)
36+
* @method static string pureString(string $data)
37+
* @method static string randomChar(int $size = 5)
38+
* @method static string randomHex()
39+
* @method static string randomRgb()
40+
* @method static string rmLink(string $string)
41+
* @method static string limitChar(string|int $string, int $length)
42+
* @method static string generateId(string|int $prefix ='',string|int $suffix ='',bool $moreEntropy = false)
43+
* @method static string rmNumbers(string $string)
44+
* @method static string rmCharacters(string $string)
45+
* @method static string rmExtraBlank(string $string)
46+
* @method static ?string hexToRgb(string $color)
47+
* @method static ?string rgbToHex(string $color)
48+
* @method static string generateAnchor(string|int $content, string $href)
49+
* @method static string getEncoding(string $string)
50+
* @method static bool isUtf8(string|array $string)
51+
* @method static string rmDuplicateWords(string $string)
52+
* @method static string rmRightChar(string $words, int $num)
53+
* @method static string rmLeftChar(string $words, int $num)
54+
* @method static string rmBothSideChar(string $words, int $num)
55+
* @method static bool isJson(mixed $data)
56+
* @method static bool isContains(string $string, string $search, bool $caseSensitive = false)
57+
* @method static bool isStartWith(string $string, string $search, bool $caseSensitive = false)
58+
* @method static string lastWord(string $string)
59+
* @method static string firstWord(string $string)
60+
* @method static string getFirstNumbers(string $string)
61+
* @method static string getLastNumbers(string $string)
62+
* @method static string rmBeginningNumbers(string $string)
63+
* @method static string rmEndingNumbers(string $string)
64+
* @method static string|bool convertToUtf8(string $string)
65+
* @method static string incrementBy(string $string, ?string $separator = null)
66+
* @method static string decrementBy(string $string, ?string $separator = null)
67+
* @method static string rmLastWord(string $string)
68+
* @method static string rmFirstWord(string $string)
69+
* @method static bool is_slug(string $slug)
70+
* @method static bool is_ipv4(string $ip)
71+
* @method static bool is_ipv6(string $ip)
72+
* @method static string after(string $string, string $search)
73+
* @method static string before(string $string, string $search)
74+
* @method static bool hasSpace(string $string)
75+
* @method static bool isEmail(string $email)
76+
* @method static string detectCase(string $word)
77+
* @method static bool isLowerCase(string $word)
78+
* @method static bool isUpperCase(string $word)
79+
* @method static bool isTitleCase(string $word)
80+
* @method static bool isSnakeCase(string $word)
81+
* @method static bool validateUserName(string $userName, int $min = 3, int $max = 20)
82+
* @method static string humanFileSize(int $size, string $type = 'KB')
83+
*/
84+
1785
class StrUtility extends Facade
1886
{
1987
protected static $getFacadeName = 'dvlpr1996\PhpStringHelpers\utility\StrUtility';

0 commit comments

Comments
 (0)