Skip to content

Commit

Permalink
Destroy endpoint complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbaggett committed Jan 4, 2023
1 parent 4a42efc commit 443f3b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Abstracts/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ public function __toArray(): array
return $this->contained;
}

public function first()
{
return reset($this->contained);
}

public function getIterator()
{
return new \ArrayIterator($this->contained);
Expand Down

0 comments on commit 443f3b7

Please sign in to comment.