mediatekformation

ChoicesToValuesTransformer
in package
implements DataTransformerInterface

Tags
author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

DataTransformerInterface
Transforms a value between different representations.

Table of Contents

$choiceList  : mixed
__construct()  : mixed
reverseTransform()  : array<string|int, mixed>
Transforms a value from the transformed representation to its original representation.
transform()  : array<string|int, mixed>
Transforms a value from the original representation to a transformed representation.

Properties

Methods

reverseTransform()

Transforms a value from the transformed representation to its original representation.

public reverseTransform(mixed $array) : array<string|int, mixed>
Parameters
$array : mixed
Tags
throws
TransformationFailedException

if the given value is not an array or if no matching choice could be found for some given value

Return values
array<string|int, mixed>

transform()

Transforms a value from the original representation to a transformed representation.

public transform(mixed $array) : array<string|int, mixed>
Parameters
$array : mixed
Tags
throws
TransformationFailedException

if the given value is not an array

Return values
array<string|int, mixed>

Search results