Documentation

AbstractStringTransformer
in package

AbstractYes

Table of Contents

Properties

$name  : string

Methods

__construct()  : mixed
extractTextInput()  : string|null

Properties

Methods

extractTextInput()

public extractTextInput(array<string|int, mixed> $parsedPayload) : string|null
Parameters
$parsedPayload : array<string|int, mixed>
Tags
throws
MissingInputException

If no input bears the specified name.

UnexpectedValueException

If the value associated with the input is not a string.

Return values
string|null

The submitted, non-empty string, or null if the string is empty.

On this page

Search results