class Base64Decode extends Mutator (View source)

Decode a base64 encoded string.

Methods

__construct(bool $strict = true)

No description

mixed
__invoke(mixed $value)

Mutate the input value.

from  Mutator
static Base64Decode
make(bool $strict = true)

No description

mixed
mutate(mixed $value)

Mutate the input value.

Details

__construct(bool $strict = true)

No description

Parameters

bool $strict

If true, the function will return false if the input contains character from outside the base64 alphabet or if the input contains character sequences that are not valid base64 encodings (e.g. a base64 encoded string from a different encoding or truncated). (default: true)

final mixed __invoke(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed

static Base64Decode make(bool $strict = true)

No description

Parameters

bool $strict

If true, the function will return false if the input contains character from outside the base64 alphabet or if the input contains character sequences that are not valid base64 encodings (e.g. a base64 encoded string from a different encoding or truncated). (default: true)

Return Value

Base64Decode

mixed mutate(mixed $value)

Mutate the input value.

Parameters

mixed $value

Return Value

mixed