Skip to content

Commit cb527f8

Browse files
authored
feat: Add all() to collection
1 parent b13ebf5 commit cb527f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Collection/Collection.php

+8
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,12 @@ public function first(): ?Representation
8282
{
8383
return $this->items[0] ?? null;
8484
}
85+
86+
/**
87+
* @return array<array-key, T>
88+
*/
89+
public function all(): array
90+
{
91+
return $this->items;
92+
}
8593
}

0 commit comments

Comments
 (0)