Wrap
class Wrap extends StringMutator (View source)
Wraps a string in a prefix and suffix. Uses the same prefix and suffix if only one is provided.
Traits
Methods
__construct(string $before, string $after = null)
No description
string
mutateString(string $value)
No description
Details
__construct(string $before, string $after = null)
No description
static Wrap
make(string $before, string $after = 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