19 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;
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform
A constraint encodes some resrtictions on values.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null