KeyCase
class KeyCase extends ArrayMutator (View source)
Changes key casing of an array.
Traits
Properties
protected | $casing | from TakesOnlyStringCasing |
Methods
static TakesOnlyStringCasing
make(StringCase|string $casing)
No description
array
mutateArray(array $array)
No description
Details
__construct(StringCase|string $casing)
No description
static TakesOnlyStringCasing
ada()
Use the Ada casing.
static TakesOnlyStringCasing
camel()
Use the Camel casing.
static TakesOnlyStringCasing
cobol()
Use the Cobol casing.
static TakesOnlyStringCasing
dot()
Use the Dot casing.
static TakesOnlyStringCasing
kebab()
Use the Kebab casing.
static TakesOnlyStringCasing
lower()
Use the Lower casing.
static TakesOnlyStringCasing
macro()
Use the Macro casing.
static TakesOnlyStringCasing
make(StringCase|string $casing)
No description
mixed
mutate(mixed $value)
Mutate the input value.
protected array
mutateArray(array $array)
No description
static TakesOnlyStringCasing
pascal()
Use the Pascal casing.
static TakesOnlyStringCasing
sentence()
Use the Sentence casing.
static TakesOnlyStringCasing
snake()
Use the Snake casing.
static TakesOnlyStringCasing
title()
Use the Title casing.
static TakesOnlyStringCasing
train()
Use the Train casing.
static TakesOnlyStringCasing
upper()
Use the Upper casing.