| 1 | <?php  | 
            ||
| 5 | class Str  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * The cache of studly-cased words.  | 
            ||
| 9 | *  | 
            ||
| 10 | * @var array  | 
            ||
| 11 | */  | 
            ||
| 12 | protected static $studlyCache = [];  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * Create StudlyCase string from _ separated string.  | 
            ||
| 16 | *  | 
            ||
| 17 | * @param string $value  | 
            ||
| 18 | *  | 
            ||
| 19 | * @return string  | 
            ||
| 20 | */  | 
            ||
| 21 | public static function studly($value)  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * Append a character to a string if it doesn't already exist.  | 
            ||
| 38 | *  | 
            ||
| 39 | * @param string $value  | 
            ||
| 40 | * @param string $char  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return string  | 
            ||
| 43 | */  | 
            ||
| 44 | public static function append($value, $char)  | 
            ||
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * Append a string to value and place single instance of $with between.  | 
            ||
| 55 | *  | 
            ||
| 56 | * @param string $value  | 
            ||
| 57 | * @param string $append  | 
            ||
| 58 | * @param string $with  | 
            ||
| 59 | *  | 
            ||
| 60 | * @return string  | 
            ||
| 61 | */  | 
            ||
| 62 | public static function appendWith($value, $append, $with)  | 
            ||
| 70 | }  | 
            ||
| 71 |