1: <?php
2:
3: namespace ShippoClient\Entity;
4:
5: abstract class EntityCollection extends \ArrayObject
6: {
7: public function toArray()
8: {
9: $ret = [];
10: /** @var Entity $entity */
11: foreach ($this->getArrayCopy() as $entity) {
12: $ret[] = $entity->toArray();
13: }
14: return $ret;
15: }
16: }
17: