|
1
|
|
|
<?php |
|
2
|
|
|
/* |
|
3
|
|
|
* This file is part of the "andrey-helldar/support" project. |
|
4
|
|
|
* |
|
5
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
6
|
|
|
* file that was distributed with this source code. |
|
7
|
|
|
* |
|
8
|
|
|
* @author Andrey Helldar <[email protected]> |
|
9
|
|
|
* |
|
10
|
|
|
* @copyright 2021 Andrey Helldar |
|
11
|
|
|
* |
|
12
|
|
|
* @license MIT |
|
13
|
|
|
* |
|
14
|
|
|
* @see https://github.com/andrey-helldar/support |
|
15
|
|
|
*/ |
|
16
|
|
|
|
|
17
|
|
|
namespace Helldar\Support\Facades\Helpers\Ables; |
|
18
|
|
|
|
|
19
|
|
|
use Helldar\Support\Facades\Facade; |
|
20
|
|
|
use Helldar\Support\Helpers\Ables\Stringable as Helper; |
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* @method static Helper after(string $search) |
|
24
|
|
|
* @method static Helper ascii(string $language = 'en') |
|
25
|
|
|
* @method static Helper before(string $search) |
|
26
|
|
|
* @method static Helper camel() |
|
27
|
|
|
* @method static Helper dump() |
|
28
|
|
|
* @method static Helper end(string $suffix) |
|
29
|
|
|
* @method static Helper finish(string $cap = '/') |
|
30
|
|
|
* @method static Helper lower() |
|
31
|
|
|
* @method static Helper of(?string $value) |
|
32
|
|
|
* @method static Helper pregReplace(string $pattern, string $replacement) |
|
33
|
|
|
* @method static Helper removeSpaces() |
|
34
|
|
|
* @method static Helper replace(array $values, string $key_format = null) |
|
35
|
|
|
* @method static Helper slug(string $separator = '-', ?string $language = 'en') |
|
36
|
|
|
* @method static Helper snake(string $delimiter = '_') |
|
37
|
|
|
* @method static Helper start(string $prefix) |
|
38
|
|
|
* @method static Helper studly() |
|
39
|
|
|
* @method static Helper substr(int $start, int $length = null) |
|
40
|
|
|
* @method static Helper title() |
|
41
|
|
|
* @method static Helper trim(string $characters = " \t\n\r\0\x0B") |
|
42
|
|
|
* @method static Helper upper() |
|
43
|
|
|
* @method static void dd() |
|
44
|
|
|
*/ |
|
45
|
|
|
class Stringable extends Facade |
|
46
|
|
|
{ |
|
47
|
20 |
|
protected static function getFacadeAccessor() |
|
48
|
|
|
{ |
|
49
|
20 |
|
return Helper::class; |
|
50
|
|
|
} |
|
51
|
|
|
} |
|
52
|
|
|
|