for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SeamsCMS\Delivery\Model;
class AssetCollection extends Collection
{
public static function fromArray(array $data)
$data['entries'] = array_map(
function ($item) {
return Asset::fromArray($item);
},
$data['entries']
);
return parent::fromArray($data);
}