Trim
class Trim extends StringMutator (View source)
Trims a string with specified direction and characters
Traits
Methods
__construct(StringDirection $direction = StringDirection::Both, string $characters = null)
No description
static Trim
make(StringDirection $direction = StringDirection::Both, string $characters = null)
No description
string
mutateString(string $value)
No description
Details
__construct(StringDirection $direction = StringDirection::Both, string $characters = null)
No description
static Trim
both(string $characters = null)
No description
static Trim
left(string $characters = null)
No description
static Trim
make(StringDirection $direction = StringDirection::Both, string $characters = null)
No description
final mixed
mutate(mixed $value)
Mutate the input value.
protected string
mutateString(string $value)
No description
protected string
resolveStringInput(mixed $value)
No description
static Trim
right(string $characters = null)
No description