class ProcessUtils

ProcessUtils is a bunch of utility methods.

This class contains static methods only and is not meant to be instantiated.

Methods

static mixed
validateInput(string $caller, mixed $input)

Validates and normalizes a Process input.

Details

static mixed validateInput(string $caller, mixed $input)

Validates and normalizes a Process input.

Parameters

string $caller The name of method call that validates the input
mixed $input The input to validate

Return Value

mixed The validated input

Exceptions

InvalidArgumentException In case the input is not valid