Skip to content

Commit e7244fb

Browse files
authored
Merge pull request #148 from overtrue/patch-1
feat: Add `all()` to collection
2 parents b13ebf5 + cb527f8 commit e7244fb

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)