Skip to content

Commit 616e984

Browse files
committed
TASK: Add combineAndUnwrapCollection to helper methods
1 parent 04be2b7 commit 616e984

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Classes/Eel/ValueObjectHelper.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ public function combineCollection(ImageSourceProxyCollection|ImageSourceProxy|nu
5252
return new ImageSourceProxyCollection(...$proxies);
5353
}
5454

55+
/**
56+
* @param ImageSourceProxyCollection|ImageSourceProxy|null ...$items
57+
* @return @return ImageSourceInterface[]
58+
*/
59+
public function combineAndUnwrapCollection(ImageSourceProxyCollection|ImageSourceProxy|null ...$items): array
60+
{
61+
return $this->unwrapProxyCollection( $this->combineCollection(...$items));
62+
}
63+
5564
public function allowsCallOfMethod($methodName)
5665
{
5766
return true;

0 commit comments

Comments
 (0)