Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cf95b3

Browse files
Add new method
1 parent e07d4dc commit 1cf95b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/Lodash/Http/Resources/TransformsData.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ public static function transformToInternal(array $fields): array
9999
return $transformed;
100100
}
101101

102+
public static function transformCollectionToInternal(iterable $items): array
103+
{
104+
$return = [];
105+
foreach ($items as $item) {
106+
$return[] = static::transformToInternal($item);
107+
}
108+
109+
return $return;
110+
}
111+
102112
private static function parseKeyValue(string $internalField, $transformValue, TransformableContract $model): array
103113
{
104114
if (is_array($transformValue)) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /