for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace LauLamanApps\IzettleApi\Client\Universal;
use LauLamanApps\IzettleApi\API\Image;
use LauLamanApps\IzettleApi\API\ImageCollection;
final class ImageParser
{
public static function parseArray(array $images)
$collection = new ImageCollection();
foreach ($images as $image) {
$collection->add(self::parse($image));
}
return $collection;
private static function parse($data): Image
return new Image($data);