src/Factory/JobFactory.php
public static function createFromAPIResponse(array $response): Job
    {
        $job = new Job();

        $values = array_map(function (array $value) {
            return ValueFactory::createFromAPIResponse($value);
        }, $response['videos']);

        $job
            ->setId($response['id'])
            ->setStatus($response['status'])
            ->setValues($values)
        ;

        return $job;
    }
public static function createFromAPIResponse(array $response): Job
    {
        $job = new Job();

        $values = array_map(function (array $value) {
            return ValueFactory::createFromAPIResponse($value);
        }, $response['videos']);

        $job
            ->setId($response['id'])
            ->setStatus($response['status'])
            ->setValues($values)
        ;

        return $job;
    }
@param array $response

@return Job