mediatekformation

ValueToDuplicatesTransformer
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

$keys  : mixed
__construct()  : mixed
reverseTransform()  : mixed
Extracts the duplicated value from an array.
transform()  : array<string|int, mixed>
Duplicates the given value through the array.

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $keys) : mixed
Parameters
$keys : array<string|int, mixed>
Return values
mixed

reverseTransform()

Extracts the duplicated value from an array.

public reverseTransform(mixed $array) : mixed
Parameters
$array : mixed
Tags
throws
TransformationFailedException

if the given value is not an array or if the given array can not be transformed

Return values
mixed

The value

transform()

Duplicates the given value through the array.

public transform(mixed $value) : array<string|int, mixed>
Parameters
$value : mixed

The value

Return values
array<string|int, mixed>

The array

Search results