src/Factory/RenderFactory.php
public static function createFromAPIResponse(array $renders) : array
    {
        $results = [];

        foreach ($renders as $render) {
            if (is_null($render)) {
                continue;
            }

            $results[] = (new Render())
                ->setId($render['id'])
                ->setState($render['state'])
                ->setStartedAt(new \DateTimeImmutable($render['started_at']))
                ->setDateFinished(new \DateTimeImmutable($render['date_finished']))
                ->setUrl($render['url'])
                ->setError($render['error'])
                ->setQuality($render['quality'])
                ->setType($render['type'])
                ->setProjectId($render['project_id']);
        }

        return $results;
    }
public static function createFromAPIResponse(array $renders) : array
    {
        $results = [];

        foreach ($renders as $render) {
            if (is_null($render)) {
                continue;
            }

            $results[] = (new Render())
                ->setId($render['id'])
                ->setState($render['state'])
                ->setStartedAt(new \DateTimeImmutable($render['started_at']))
                ->setDateFinished(new \DateTimeImmutable($render['date_finished']))
                ->setUrl($render['url'])
                ->setError($render['error'])
                ->setQuality($render['quality'])
                ->setType($render['type'])
                ->setProjectId($render['project_id']);
        }

        return $results;
    }
@param array  $renders

@return Render[]