|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Helldar\Support\Facades\Helpers; |
|
4
|
|
|
|
|
5
|
|
|
use Helldar\Support\Facades\BaseFacade; |
|
6
|
|
|
use Helldar\Support\Helpers\Str as Helper; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* @method static bool endsWith(string $haystack, string|string[] $needles) |
|
10
|
|
|
* @method static bool startsWith(string $haystack, string|string[] $needles) |
|
11
|
|
|
* @method static int length(?string $value, string $encoding = null) |
|
12
|
|
|
* @method static string camel(?string $value) |
|
13
|
|
|
* @method static string choice(float $number, array $choice = [], string $extra = null) |
|
14
|
|
|
* @method static string finish(string $value, string $cap = '/') |
|
15
|
|
|
* @method static string lower(?string $value) |
|
16
|
|
|
* @method static string snake(?string $value, string $delimiter = '_') |
|
17
|
|
|
* @method static string start(?string $value, string $prefix) |
|
18
|
|
|
* @method static string studly(?string $value) |
|
19
|
|
|
* @method static string|null after(string $subject, string $search) |
|
20
|
|
|
* @method static string|null before(string $subject, string $search) |
|
21
|
|
|
* @method static string|null de(?string $value) |
|
22
|
|
|
* @method static string|null e(?string $value, bool $double = true) |
|
23
|
|
|
* @method static string|null removeSpaces(?string $value) |
|
24
|
|
|
* @method static string|null substr(string $string, int $start, int $length = null) |
|
25
|
|
|
*/ |
|
26
|
|
|
final class Str extends BaseFacade |
|
27
|
|
|
{ |
|
28
|
|
|
protected static function getFacadeAccessor() |
|
29
|
|
|
{ |
|
30
|
|
|
return Helper::class; |
|
31
|
|
|
} |
|
32
|
|
|
} |
|
33
|
|
|
|