Skip to content

🎥 Make videos programmatically with React

PHP: Extract GetRenderProgressResponse into separate file

Jonny Burgerbd8ae9c4a2e2
diff --git a/packages/lambda-php/src/GetRenderProgressResponse.php b/packages/lambda-php/src/GetRenderProgressResponse.php
new file mode 100644
index 0000000000..c1c04d0606
--- /dev/null
+++ b/packages/lambda-php/src/GetRenderProgressResponse.php
@@ -0,0 +1,18 @@
+<?php
+
+class GetRenderProgressResponse
+{
+ public int $chunks;
+ public bool $done;
+ public float $overallProgress;
+ public string $type;
+ public ?string $outputFile;
+ public int $lambdasInvoked;
+ public int $renderSize;
+ public int $currentTime;
+ public bool $fatalErrorEncountered;
+ public ?int $timeToFinish;
+ public ?string $outBucket;
+ public ?string $outKey;
+ public ?string $bucket;
+}
diff --git a/packages/lambda-php/src/PHPClient.php b/packages/lambda-php/src/PHPClient.php
index 6a7771d5fc..92b7f97591 100644
--- a/packages/lambda-php/src/PHPClient.php
+++ b/packages/lambda-php/src/PHPClient.php
@@ -4,6 +4,7 @@ namespace Remotion\LambdaPhp;
use Aws\Credentials\CredentialProvider;
use Aws\Lambda\LambdaClient;
use Exception;
+use GetRenderProgressResponse;
use stdClass;
require_once __DIR__ . '/Version.php';
diff --git a/packages/lambda-php/src/RenderParams.php b/packages/lambda-php/src/RenderParams.php
index 0a38166431..b082dfdb5e 100644
--- a/packages/lambda-php/src/RenderParams.php
+++ b/packages/lambda-php/src/RenderParams.php
@@ -12,22 +12,6 @@ class RenderMediaOnLambdaResponse
public string $renderId;
}
-class GetRenderProgressResponse
-{
- public int $chunks;
- public bool $done;
- public float $overallProgress;
- public string $type;
- public ?string $outputFile;
- public int $lambdasInvoked;
- public int $renderSize;
- public int $currentTime;
- public bool $fatalErrorEncountered;
- public ?int $timeToFinish;
- public ?string $outBucket;
- public ?string $outKey;
- public ?string $bucket;
-}
class RenderParams
{