3 declare(strict_types=1);
52 foreach ($from as
$key => $value) {
53 $transformedValue = $this->transformation->transform($value);
54 $result[
$key] = $transformedValue;
65 return 'The value MUST be an array with only string keys.';
85 if (!is_array($value)) {
89 return count(array_filter($value,
static function (
$key):
bool {
90 return !is_string(
$key);
91 }, ARRAY_FILTER_USE_KEY)) === 0;
A constraint encodes some resrtictions on values.
trait DeriveApplyToFromTransform
trait DeriveInvokeFromTransform
getErrorMessage($value)
Get the problem message.