ValueToDuplicatesTransformer
in package
implements
DataTransformerInterface
Tags
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
$keys
private
mixed
$keys
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
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