diff --git a/src/Abstracts/AbstractCollection.php b/src/Abstracts/AbstractCollection.php index 8c551b1..e52c676 100644 --- a/src/Abstracts/AbstractCollection.php +++ b/src/Abstracts/AbstractCollection.php @@ -6,6 +6,10 @@ abstract class AbstractCollection { protected array $contained = []; + public function __toArray() : array { + return $this->contained; + } + public function getIterator() { return new \ArrayIterator($this->contained);