From 682d8b923260dd2f7c7c8b6eb7c25296ff995856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Tue, 30 Jul 2024 13:36:17 +0200 Subject: [PATCH] Bump php-cs-fixer to version 3.60 (#1743) --- CHANGELOG.md | 4 ++ src/Input/CancelJobRequest.php | 2 +- src/Input/CreateJobRequest.php | 10 ++-- src/Input/DescribeEndpointsRequest.php | 2 +- src/Input/GetJobRequest.php | 2 +- src/Input/ListJobsRequest.php | 4 +- src/MediaConvertClient.php | 2 +- src/Result/CreateJobResponse.php | 10 ++-- src/Result/GetJobResponse.php | 10 ++-- src/Result/ListJobsResponse.php | 10 ++-- src/ValueObject/AacSettings.php | 14 ++--- src/ValueObject/Ac3Settings.php | 14 ++--- src/ValueObject/AccelerationSettings.php | 2 +- .../AdvancedInputFilterSettings.php | 4 +- src/ValueObject/AllowedRenditionSize.php | 2 +- src/ValueObject/AncillarySourceSettings.php | 4 +- .../AudioChannelTaggingSettings.php | 4 +- src/ValueObject/AudioCodecSettings.php | 2 +- src/ValueObject/AudioDescription.php | 6 +-- .../AudioNormalizationSettings.php | 8 +-- src/ValueObject/AudioSelector.php | 8 +-- src/ValueObject/AutomatedAbrRule.php | 2 +- src/ValueObject/Av1Settings.php | 14 ++--- src/ValueObject/AvcIntraSettings.php | 14 ++--- src/ValueObject/AvcIntraUhdSettings.php | 2 +- src/ValueObject/BandwidthReductionFilter.php | 4 +- src/ValueObject/BurninDestinationSettings.php | 20 +++---- src/ValueObject/CaptionDescription.php | 2 +- .../CaptionDestinationSettings.php | 2 +- src/ValueObject/CaptionSelector.php | 2 +- src/ValueObject/CaptionSourceSettings.php | 2 +- src/ValueObject/CmafEncryptionSettings.php | 6 +-- src/ValueObject/CmafGroupSettings.php | 34 ++++++------ .../CmafImageBasedTrickPlaySettings.php | 2 +- src/ValueObject/CmfcSettings.php | 20 +++---- .../ColorConversion3DLUTSetting.php | 4 +- src/ValueObject/ColorCorrector.php | 6 +-- src/ValueObject/ContainerSettings.php | 2 +- src/ValueObject/DashIsoEncryptionSettings.php | 2 +- src/ValueObject/DashIsoGroupSettings.php | 22 ++++---- .../DashIsoImageBasedTrickPlaySettings.php | 2 +- src/ValueObject/Deinterlacer.php | 6 +-- src/ValueObject/DolbyVision.php | 6 +-- src/ValueObject/DvbSdtSettings.php | 2 +- src/ValueObject/DvbSubDestinationSettings.php | 24 ++++----- src/ValueObject/Eac3AtmosSettings.php | 20 +++---- src/ValueObject/Eac3Settings.php | 28 +++++----- src/ValueObject/EmbeddedSourceSettings.php | 4 +- src/ValueObject/ExtendedDataServices.php | 4 +- src/ValueObject/F4vSettings.php | 2 +- src/ValueObject/FileSourceSettings.php | 6 +-- src/ValueObject/H264Settings.php | 50 +++++++++--------- src/ValueObject/H265Settings.php | 52 +++++++++---------- src/ValueObject/HlsCaptionLanguageMapping.php | 2 +- src/ValueObject/HlsEncryptionSettings.php | 8 +-- src/ValueObject/HlsGroupSettings.php | 36 ++++++------- .../HlsImageBasedTrickPlaySettings.php | 2 +- src/ValueObject/HlsRenditionGroupSettings.php | 2 +- src/ValueObject/HlsSettings.php | 8 +-- src/ValueObject/ImscDestinationSettings.php | 4 +- src/ValueObject/Input.php | 14 ++--- src/ValueObject/InputDecryptionSettings.php | 2 +- src/ValueObject/M2tsSettings.php | 34 ++++++------ src/ValueObject/M3u8Settings.php | 14 ++--- src/ValueObject/MotionImageInserter.php | 4 +- src/ValueObject/MovSettings.php | 10 ++-- src/ValueObject/Mp3Settings.php | 2 +- src/ValueObject/Mp4Settings.php | 8 +-- src/ValueObject/MpdSettings.php | 18 +++---- src/ValueObject/Mpeg2Settings.php | 38 +++++++------- src/ValueObject/MsSmoothGroupSettings.php | 6 +-- src/ValueObject/MxfSettings.php | 4 +- src/ValueObject/MxfXavcProfileSettings.php | 2 +- .../NexGuardFileMarkerSettings.php | 2 +- .../NielsenNonLinearWatermarkSettings.php | 6 +-- src/ValueObject/NoiseReducer.php | 2 +- .../NoiseReducerTemporalFilterSettings.php | 4 +- src/ValueObject/OutputGroupSettings.php | 2 +- src/ValueObject/ProresSettings.php | 18 +++---- .../S3DestinationAccessControl.php | 2 +- src/ValueObject/S3DestinationSettings.php | 2 +- src/ValueObject/S3EncryptionSettings.php | 2 +- src/ValueObject/SccDestinationSettings.php | 2 +- src/ValueObject/SrtDestinationSettings.php | 2 +- .../TeletextDestinationSettings.php | 2 +- src/ValueObject/TimecodeBurnin.php | 2 +- src/ValueObject/TimecodeConfig.php | 2 +- src/ValueObject/TtmlDestinationSettings.php | 2 +- src/ValueObject/UncompressedSettings.php | 14 ++--- src/ValueObject/Vc3Settings.php | 14 ++--- src/ValueObject/VideoCodecSettings.php | 2 +- src/ValueObject/VideoDescription.php | 14 ++--- src/ValueObject/VideoOverlayInput.php | 2 +- src/ValueObject/VideoSelector.php | 14 ++--- src/ValueObject/Vp8Settings.php | 10 ++-- src/ValueObject/Vp9Settings.php | 10 ++-- src/ValueObject/WavSettings.php | 2 +- src/ValueObject/WebvttDestinationSettings.php | 4 +- src/ValueObject/WebvttHlsSourceSettings.php | 2 +- .../Xavc4kIntraCbgProfileSettings.php | 2 +- .../Xavc4kIntraVbrProfileSettings.php | 2 +- src/ValueObject/Xavc4kProfileSettings.php | 10 ++-- .../XavcHdIntraCbgProfileSettings.php | 2 +- src/ValueObject/XavcHdProfileSettings.php | 12 ++--- src/ValueObject/XavcSettings.php | 16 +++--- 105 files changed, 449 insertions(+), 445 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8320e3..4eab6f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Enable compiler optimization for the `sprintf` function. + ## 1.3.0 ### Added diff --git a/src/Input/CancelJobRequest.php b/src/Input/CancelJobRequest.php index 59645c4..ffb7653 100644 --- a/src/Input/CancelJobRequest.php +++ b/src/Input/CancelJobRequest.php @@ -66,7 +66,7 @@ public function request(): Request // Prepare URI $uri = []; if (null === $v = $this->id) { - throw new InvalidArgument(sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__)); + throw new InvalidArgument(\sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__)); } $uri['id'] = $v; $uriString = '/2017-08-29/jobs/' . rawurlencode($uri['id']); diff --git a/src/Input/CreateJobRequest.php b/src/Input/CreateJobRequest.php index f8e8561..76050be 100644 --- a/src/Input/CreateJobRequest.php +++ b/src/Input/CreateJobRequest.php @@ -422,7 +422,7 @@ private function requestBody(): array } if (null !== $v = $this->billingTagsSource) { if (!BillingTagsSource::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "billingTagsSource" for "%s". The value "%s" is not a valid "BillingTagsSource".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "billingTagsSource" for "%s". The value "%s" is not a valid "BillingTagsSource".', __CLASS__, $v)); } $payload['billingTagsSource'] = $v; } @@ -448,22 +448,22 @@ private function requestBody(): array $payload['queue'] = $v; } if (null === $v = $this->role) { - throw new InvalidArgument(sprintf('Missing parameter "Role" for "%s". The value cannot be null.', __CLASS__)); + throw new InvalidArgument(\sprintf('Missing parameter "Role" for "%s". The value cannot be null.', __CLASS__)); } $payload['role'] = $v; if (null === $v = $this->settings) { - throw new InvalidArgument(sprintf('Missing parameter "Settings" for "%s". The value cannot be null.', __CLASS__)); + throw new InvalidArgument(\sprintf('Missing parameter "Settings" for "%s". The value cannot be null.', __CLASS__)); } $payload['settings'] = $v->requestBody(); if (null !== $v = $this->simulateReservedQueue) { if (!SimulateReservedQueue::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "simulateReservedQueue" for "%s". The value "%s" is not a valid "SimulateReservedQueue".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "simulateReservedQueue" for "%s". The value "%s" is not a valid "SimulateReservedQueue".', __CLASS__, $v)); } $payload['simulateReservedQueue'] = $v; } if (null !== $v = $this->statusUpdateInterval) { if (!StatusUpdateInterval::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "statusUpdateInterval" for "%s". The value "%s" is not a valid "StatusUpdateInterval".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "statusUpdateInterval" for "%s". The value "%s" is not a valid "StatusUpdateInterval".', __CLASS__, $v)); } $payload['statusUpdateInterval'] = $v; } diff --git a/src/Input/DescribeEndpointsRequest.php b/src/Input/DescribeEndpointsRequest.php index b41a392..4e84aa5 100644 --- a/src/Input/DescribeEndpointsRequest.php +++ b/src/Input/DescribeEndpointsRequest.php @@ -142,7 +142,7 @@ private function requestBody(): array } if (null !== $v = $this->mode) { if (!DescribeEndpointsMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "DescribeEndpointsMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "DescribeEndpointsMode".', __CLASS__, $v)); } $payload['mode'] = $v; } diff --git a/src/Input/GetJobRequest.php b/src/Input/GetJobRequest.php index 74b0296..3114e34 100644 --- a/src/Input/GetJobRequest.php +++ b/src/Input/GetJobRequest.php @@ -66,7 +66,7 @@ public function request(): Request // Prepare URI $uri = []; if (null === $v = $this->id) { - throw new InvalidArgument(sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__)); + throw new InvalidArgument(\sprintf('Missing parameter "Id" for "%s". The value cannot be null.', __CLASS__)); } $uri['id'] = $v; $uriString = '/2017-08-29/jobs/' . rawurlencode($uri['id']); diff --git a/src/Input/ListJobsRequest.php b/src/Input/ListJobsRequest.php index 5e4a228..db5f2a0 100644 --- a/src/Input/ListJobsRequest.php +++ b/src/Input/ListJobsRequest.php @@ -139,7 +139,7 @@ public function request(): Request } if (null !== $this->order) { if (!Order::exists($this->order)) { - throw new InvalidArgument(sprintf('Invalid parameter "Order" for "%s". The value "%s" is not a valid "Order".', __CLASS__, $this->order)); + throw new InvalidArgument(\sprintf('Invalid parameter "Order" for "%s". The value "%s" is not a valid "Order".', __CLASS__, $this->order)); } $query['order'] = $this->order; } @@ -148,7 +148,7 @@ public function request(): Request } if (null !== $this->status) { if (!JobStatus::exists($this->status)) { - throw new InvalidArgument(sprintf('Invalid parameter "Status" for "%s". The value "%s" is not a valid "JobStatus".', __CLASS__, $this->status)); + throw new InvalidArgument(\sprintf('Invalid parameter "Status" for "%s". The value "%s" is not a valid "JobStatus".', __CLASS__, $this->status)); } $query['status'] = $this->status; } diff --git a/src/MediaConvertClient.php b/src/MediaConvertClient.php index baee868..4333885 100644 --- a/src/MediaConvertClient.php +++ b/src/MediaConvertClient.php @@ -140,7 +140,7 @@ public function createJob($input): CreateJobResponse */ public function describeEndpoints($input = []): DescribeEndpointsResponse { - @trigger_error(sprintf('The operation "%s" is deprecated by AWS.', __FUNCTION__), \E_USER_DEPRECATED); + @trigger_error(\sprintf('The operation "%s" is deprecated by AWS.', __FUNCTION__), \E_USER_DEPRECATED); $input = DescribeEndpointsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeEndpoints', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, diff --git a/src/Result/CreateJobResponse.php b/src/Result/CreateJobResponse.php index 8f43193..6771ac6 100644 --- a/src/Result/CreateJobResponse.php +++ b/src/Result/CreateJobResponse.php @@ -1363,7 +1363,7 @@ private function populateResultJob(array $json): Job 'Arn' => isset($json['arn']) ? (string) $json['arn'] : null, 'BillingTagsSource' => isset($json['billingTagsSource']) ? (string) $json['billingTagsSource'] : null, 'ClientRequestToken' => isset($json['clientRequestToken']) ? (string) $json['clientRequestToken'] : null, - 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['createdAt']))) ? $d : null, + 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['createdAt']))) ? $d : null, 'CurrentPhase' => isset($json['currentPhase']) ? (string) $json['currentPhase'] : null, 'ErrorCode' => isset($json['errorCode']) ? (int) $json['errorCode'] : null, 'ErrorMessage' => isset($json['errorMessage']) ? (string) $json['errorMessage'] : null, @@ -1885,7 +1885,7 @@ private function populateResultQueueTransition(array $json): QueueTransition return new QueueTransition([ 'DestinationQueue' => isset($json['destinationQueue']) ? (string) $json['destinationQueue'] : null, 'SourceQueue' => isset($json['sourceQueue']) ? (string) $json['sourceQueue'] : null, - 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['timestamp']))) ? $d : null, + 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['timestamp']))) ? $d : null, ]); } @@ -2024,9 +2024,9 @@ private function populateResultTimedMetadataInsertion(array $json): TimedMetadat private function populateResultTiming(array $json): Timing { return new Timing([ - 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['finishTime']))) ? $d : null, - 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['startTime']))) ? $d : null, - 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['submitTime']))) ? $d : null, + 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['finishTime']))) ? $d : null, + 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['startTime']))) ? $d : null, + 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['submitTime']))) ? $d : null, ]); } diff --git a/src/Result/GetJobResponse.php b/src/Result/GetJobResponse.php index a5dbde2..e46debf 100644 --- a/src/Result/GetJobResponse.php +++ b/src/Result/GetJobResponse.php @@ -1363,7 +1363,7 @@ private function populateResultJob(array $json): Job 'Arn' => isset($json['arn']) ? (string) $json['arn'] : null, 'BillingTagsSource' => isset($json['billingTagsSource']) ? (string) $json['billingTagsSource'] : null, 'ClientRequestToken' => isset($json['clientRequestToken']) ? (string) $json['clientRequestToken'] : null, - 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['createdAt']))) ? $d : null, + 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['createdAt']))) ? $d : null, 'CurrentPhase' => isset($json['currentPhase']) ? (string) $json['currentPhase'] : null, 'ErrorCode' => isset($json['errorCode']) ? (int) $json['errorCode'] : null, 'ErrorMessage' => isset($json['errorMessage']) ? (string) $json['errorMessage'] : null, @@ -1885,7 +1885,7 @@ private function populateResultQueueTransition(array $json): QueueTransition return new QueueTransition([ 'DestinationQueue' => isset($json['destinationQueue']) ? (string) $json['destinationQueue'] : null, 'SourceQueue' => isset($json['sourceQueue']) ? (string) $json['sourceQueue'] : null, - 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['timestamp']))) ? $d : null, + 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['timestamp']))) ? $d : null, ]); } @@ -2024,9 +2024,9 @@ private function populateResultTimedMetadataInsertion(array $json): TimedMetadat private function populateResultTiming(array $json): Timing { return new Timing([ - 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['finishTime']))) ? $d : null, - 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['startTime']))) ? $d : null, - 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['submitTime']))) ? $d : null, + 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['finishTime']))) ? $d : null, + 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['startTime']))) ? $d : null, + 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['submitTime']))) ? $d : null, ]); } diff --git a/src/Result/ListJobsResponse.php b/src/Result/ListJobsResponse.php index f68cc5d..61de9e9 100644 --- a/src/Result/ListJobsResponse.php +++ b/src/Result/ListJobsResponse.php @@ -1430,7 +1430,7 @@ private function populateResultJob(array $json): Job 'Arn' => isset($json['arn']) ? (string) $json['arn'] : null, 'BillingTagsSource' => isset($json['billingTagsSource']) ? (string) $json['billingTagsSource'] : null, 'ClientRequestToken' => isset($json['clientRequestToken']) ? (string) $json['clientRequestToken'] : null, - 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['createdAt']))) ? $d : null, + 'CreatedAt' => isset($json['createdAt']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['createdAt']))) ? $d : null, 'CurrentPhase' => isset($json['currentPhase']) ? (string) $json['currentPhase'] : null, 'ErrorCode' => isset($json['errorCode']) ? (int) $json['errorCode'] : null, 'ErrorMessage' => isset($json['errorMessage']) ? (string) $json['errorMessage'] : null, @@ -1952,7 +1952,7 @@ private function populateResultQueueTransition(array $json): QueueTransition return new QueueTransition([ 'DestinationQueue' => isset($json['destinationQueue']) ? (string) $json['destinationQueue'] : null, 'SourceQueue' => isset($json['sourceQueue']) ? (string) $json['sourceQueue'] : null, - 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['timestamp']))) ? $d : null, + 'Timestamp' => isset($json['timestamp']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['timestamp']))) ? $d : null, ]); } @@ -2091,9 +2091,9 @@ private function populateResultTimedMetadataInsertion(array $json): TimedMetadat private function populateResultTiming(array $json): Timing { return new Timing([ - 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['finishTime']))) ? $d : null, - 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['startTime']))) ? $d : null, - 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $json['submitTime']))) ? $d : null, + 'FinishTime' => isset($json['finishTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['finishTime']))) ? $d : null, + 'StartTime' => isset($json['startTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['startTime']))) ? $d : null, + 'SubmitTime' => isset($json['submitTime']) && ($d = \DateTimeImmutable::createFromFormat('U.u', \sprintf('%.6F', $json['submitTime']))) ? $d : null, ]); } diff --git a/src/ValueObject/AacSettings.php b/src/ValueObject/AacSettings.php index 459bea4..f0a870c 100644 --- a/src/ValueObject/AacSettings.php +++ b/src/ValueObject/AacSettings.php @@ -220,7 +220,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioDescriptionBroadcasterMix) { if (!AacAudioDescriptionBroadcasterMix::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDescriptionBroadcasterMix" for "%s". The value "%s" is not a valid "AacAudioDescriptionBroadcasterMix".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDescriptionBroadcasterMix" for "%s". The value "%s" is not a valid "AacAudioDescriptionBroadcasterMix".', __CLASS__, $v)); } $payload['audioDescriptionBroadcasterMix'] = $v; } @@ -229,25 +229,25 @@ public function requestBody(): array } if (null !== $v = $this->codecProfile) { if (!AacCodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "AacCodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "AacCodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->codingMode) { if (!AacCodingMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "AacCodingMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "AacCodingMode".', __CLASS__, $v)); } $payload['codingMode'] = $v; } if (null !== $v = $this->rateControlMode) { if (!AacRateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "AacRateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "AacRateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } if (null !== $v = $this->rawFormat) { if (!AacRawFormat::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rawFormat" for "%s". The value "%s" is not a valid "AacRawFormat".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rawFormat" for "%s". The value "%s" is not a valid "AacRawFormat".', __CLASS__, $v)); } $payload['rawFormat'] = $v; } @@ -256,13 +256,13 @@ public function requestBody(): array } if (null !== $v = $this->specification) { if (!AacSpecification::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "specification" for "%s". The value "%s" is not a valid "AacSpecification".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "specification" for "%s". The value "%s" is not a valid "AacSpecification".', __CLASS__, $v)); } $payload['specification'] = $v; } if (null !== $v = $this->vbrQuality) { if (!AacVbrQuality::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "vbrQuality" for "%s". The value "%s" is not a valid "AacVbrQuality".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "vbrQuality" for "%s". The value "%s" is not a valid "AacVbrQuality".', __CLASS__, $v)); } $payload['vbrQuality'] = $v; } diff --git a/src/ValueObject/Ac3Settings.php b/src/ValueObject/Ac3Settings.php index 26ed98c..0908778 100644 --- a/src/ValueObject/Ac3Settings.php +++ b/src/ValueObject/Ac3Settings.php @@ -235,13 +235,13 @@ public function requestBody(): array } if (null !== $v = $this->bitstreamMode) { if (!Ac3BitstreamMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Ac3BitstreamMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Ac3BitstreamMode".', __CLASS__, $v)); } $payload['bitstreamMode'] = $v; } if (null !== $v = $this->codingMode) { if (!Ac3CodingMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Ac3CodingMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Ac3CodingMode".', __CLASS__, $v)); } $payload['codingMode'] = $v; } @@ -250,31 +250,31 @@ public function requestBody(): array } if (null !== $v = $this->dynamicRangeCompressionLine) { if (!Ac3DynamicRangeCompressionLine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionLine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionLine".', __CLASS__, $v)); } $payload['dynamicRangeCompressionLine'] = $v; } if (null !== $v = $this->dynamicRangeCompressionProfile) { if (!Ac3DynamicRangeCompressionProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionProfile" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionProfile" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionProfile".', __CLASS__, $v)); } $payload['dynamicRangeCompressionProfile'] = $v; } if (null !== $v = $this->dynamicRangeCompressionRf) { if (!Ac3DynamicRangeCompressionRf::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionRf".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Ac3DynamicRangeCompressionRf".', __CLASS__, $v)); } $payload['dynamicRangeCompressionRf'] = $v; } if (null !== $v = $this->lfeFilter) { if (!Ac3LfeFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "lfeFilter" for "%s". The value "%s" is not a valid "Ac3LfeFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "lfeFilter" for "%s". The value "%s" is not a valid "Ac3LfeFilter".', __CLASS__, $v)); } $payload['lfeFilter'] = $v; } if (null !== $v = $this->metadataControl) { if (!Ac3MetadataControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "metadataControl" for "%s". The value "%s" is not a valid "Ac3MetadataControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "metadataControl" for "%s". The value "%s" is not a valid "Ac3MetadataControl".', __CLASS__, $v)); } $payload['metadataControl'] = $v; } diff --git a/src/ValueObject/AccelerationSettings.php b/src/ValueObject/AccelerationSettings.php index cee922a..c611422 100644 --- a/src/ValueObject/AccelerationSettings.php +++ b/src/ValueObject/AccelerationSettings.php @@ -53,7 +53,7 @@ public function requestBody(): array $payload = []; $v = $this->mode; if (!AccelerationMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "AccelerationMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "AccelerationMode".', __CLASS__, $v)); } $payload['mode'] = $v; diff --git a/src/ValueObject/AdvancedInputFilterSettings.php b/src/ValueObject/AdvancedInputFilterSettings.php index e676244..05e7cf3 100644 --- a/src/ValueObject/AdvancedInputFilterSettings.php +++ b/src/ValueObject/AdvancedInputFilterSettings.php @@ -77,13 +77,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->addTexture) { if (!AdvancedInputFilterAddTexture::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "addTexture" for "%s". The value "%s" is not a valid "AdvancedInputFilterAddTexture".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "addTexture" for "%s". The value "%s" is not a valid "AdvancedInputFilterAddTexture".', __CLASS__, $v)); } $payload['addTexture'] = $v; } if (null !== $v = $this->sharpening) { if (!AdvancedInputFilterSharpen::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sharpening" for "%s". The value "%s" is not a valid "AdvancedInputFilterSharpen".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sharpening" for "%s". The value "%s" is not a valid "AdvancedInputFilterSharpen".', __CLASS__, $v)); } $payload['sharpening'] = $v; } diff --git a/src/ValueObject/AllowedRenditionSize.php b/src/ValueObject/AllowedRenditionSize.php index 45a586f..239412a 100644 --- a/src/ValueObject/AllowedRenditionSize.php +++ b/src/ValueObject/AllowedRenditionSize.php @@ -91,7 +91,7 @@ public function requestBody(): array } if (null !== $v = $this->required) { if (!RequiredFlag::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "required" for "%s". The value "%s" is not a valid "RequiredFlag".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "required" for "%s". The value "%s" is not a valid "RequiredFlag".', __CLASS__, $v)); } $payload['required'] = $v; } diff --git a/src/ValueObject/AncillarySourceSettings.php b/src/ValueObject/AncillarySourceSettings.php index d15e9c3..fc52a0c 100644 --- a/src/ValueObject/AncillarySourceSettings.php +++ b/src/ValueObject/AncillarySourceSettings.php @@ -90,7 +90,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->convert608To708) { if (!AncillaryConvert608To708::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "AncillaryConvert608To708".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "AncillaryConvert608To708".', __CLASS__, $v)); } $payload['convert608To708'] = $v; } @@ -99,7 +99,7 @@ public function requestBody(): array } if (null !== $v = $this->terminateCaptions) { if (!AncillaryTerminateCaptions::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "terminateCaptions" for "%s". The value "%s" is not a valid "AncillaryTerminateCaptions".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "terminateCaptions" for "%s". The value "%s" is not a valid "AncillaryTerminateCaptions".', __CLASS__, $v)); } $payload['terminateCaptions'] = $v; } diff --git a/src/ValueObject/AudioChannelTaggingSettings.php b/src/ValueObject/AudioChannelTaggingSettings.php index 5d9e4bc..8f4f31c 100644 --- a/src/ValueObject/AudioChannelTaggingSettings.php +++ b/src/ValueObject/AudioChannelTaggingSettings.php @@ -79,7 +79,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->channelTag) { if (!AudioChannelTag::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "channelTag" for "%s". The value "%s" is not a valid "AudioChannelTag".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "channelTag" for "%s". The value "%s" is not a valid "AudioChannelTag".', __CLASS__, $v)); } $payload['channelTag'] = $v; } @@ -89,7 +89,7 @@ public function requestBody(): array foreach ($v as $listValue) { ++$index; if (!AudioChannelTag::exists($listValue)) { - throw new InvalidArgument(sprintf('Invalid parameter "channelTags" for "%s". The value "%s" is not a valid "AudioChannelTag".', __CLASS__, $listValue)); + throw new InvalidArgument(\sprintf('Invalid parameter "channelTags" for "%s". The value "%s" is not a valid "AudioChannelTag".', __CLASS__, $listValue)); } $payload['channelTags'][$index] = $listValue; } diff --git a/src/ValueObject/AudioCodecSettings.php b/src/ValueObject/AudioCodecSettings.php index f6b03ca..04fe563 100644 --- a/src/ValueObject/AudioCodecSettings.php +++ b/src/ValueObject/AudioCodecSettings.php @@ -237,7 +237,7 @@ public function requestBody(): array } if (null !== $v = $this->codec) { if (!AudioCodec::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codec" for "%s". The value "%s" is not a valid "AudioCodec".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codec" for "%s". The value "%s" is not a valid "AudioCodec".', __CLASS__, $v)); } $payload['codec'] = $v; } diff --git a/src/ValueObject/AudioDescription.php b/src/ValueObject/AudioDescription.php index c1f9ce9..69f7dce 100644 --- a/src/ValueObject/AudioDescription.php +++ b/src/ValueObject/AudioDescription.php @@ -252,7 +252,7 @@ public function requestBody(): array } if (null !== $v = $this->audioTypeControl) { if (!AudioTypeControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioTypeControl" for "%s". The value "%s" is not a valid "AudioTypeControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioTypeControl" for "%s". The value "%s" is not a valid "AudioTypeControl".', __CLASS__, $v)); } $payload['audioTypeControl'] = $v; } @@ -264,13 +264,13 @@ public function requestBody(): array } if (null !== $v = $this->languageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['languageCode'] = $v; } if (null !== $v = $this->languageCodeControl) { if (!AudioLanguageCodeControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCodeControl" for "%s". The value "%s" is not a valid "AudioLanguageCodeControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCodeControl" for "%s". The value "%s" is not a valid "AudioLanguageCodeControl".', __CLASS__, $v)); } $payload['languageCodeControl'] = $v; } diff --git a/src/ValueObject/AudioNormalizationSettings.php b/src/ValueObject/AudioNormalizationSettings.php index 8bce999..8bfca8d 100644 --- a/src/ValueObject/AudioNormalizationSettings.php +++ b/src/ValueObject/AudioNormalizationSettings.php @@ -167,13 +167,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->algorithm) { if (!AudioNormalizationAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "algorithm" for "%s". The value "%s" is not a valid "AudioNormalizationAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "algorithm" for "%s". The value "%s" is not a valid "AudioNormalizationAlgorithm".', __CLASS__, $v)); } $payload['algorithm'] = $v; } if (null !== $v = $this->algorithmControl) { if (!AudioNormalizationAlgorithmControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "algorithmControl" for "%s". The value "%s" is not a valid "AudioNormalizationAlgorithmControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "algorithmControl" for "%s". The value "%s" is not a valid "AudioNormalizationAlgorithmControl".', __CLASS__, $v)); } $payload['algorithmControl'] = $v; } @@ -182,13 +182,13 @@ public function requestBody(): array } if (null !== $v = $this->loudnessLogging) { if (!AudioNormalizationLoudnessLogging::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "loudnessLogging" for "%s". The value "%s" is not a valid "AudioNormalizationLoudnessLogging".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "loudnessLogging" for "%s". The value "%s" is not a valid "AudioNormalizationLoudnessLogging".', __CLASS__, $v)); } $payload['loudnessLogging'] = $v; } if (null !== $v = $this->peakCalculation) { if (!AudioNormalizationPeakCalculation::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "peakCalculation" for "%s". The value "%s" is not a valid "AudioNormalizationPeakCalculation".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "peakCalculation" for "%s". The value "%s" is not a valid "AudioNormalizationPeakCalculation".', __CLASS__, $v)); } $payload['peakCalculation'] = $v; } diff --git a/src/ValueObject/AudioSelector.php b/src/ValueObject/AudioSelector.php index d480325..8106fe3 100644 --- a/src/ValueObject/AudioSelector.php +++ b/src/ValueObject/AudioSelector.php @@ -258,7 +258,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioDurationCorrection) { if (!AudioDurationCorrection::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDurationCorrection" for "%s". The value "%s" is not a valid "AudioDurationCorrection".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDurationCorrection" for "%s". The value "%s" is not a valid "AudioDurationCorrection".', __CLASS__, $v)); } $payload['audioDurationCorrection'] = $v; } @@ -267,7 +267,7 @@ public function requestBody(): array } if (null !== $v = $this->defaultSelection) { if (!AudioDefaultSelection::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "defaultSelection" for "%s". The value "%s" is not a valid "AudioDefaultSelection".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "defaultSelection" for "%s". The value "%s" is not a valid "AudioDefaultSelection".', __CLASS__, $v)); } $payload['defaultSelection'] = $v; } @@ -279,7 +279,7 @@ public function requestBody(): array } if (null !== $v = $this->languageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['languageCode'] = $v; } @@ -302,7 +302,7 @@ public function requestBody(): array } if (null !== $v = $this->selectorType) { if (!AudioSelectorType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "selectorType" for "%s". The value "%s" is not a valid "AudioSelectorType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "selectorType" for "%s". The value "%s" is not a valid "AudioSelectorType".', __CLASS__, $v)); } $payload['selectorType'] = $v; } diff --git a/src/ValueObject/AutomatedAbrRule.php b/src/ValueObject/AutomatedAbrRule.php index 35602a6..88c2a7c 100644 --- a/src/ValueObject/AutomatedAbrRule.php +++ b/src/ValueObject/AutomatedAbrRule.php @@ -172,7 +172,7 @@ public function requestBody(): array } if (null !== $v = $this->type) { if (!RuleType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "RuleType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "RuleType".', __CLASS__, $v)); } $payload['type'] = $v; } diff --git a/src/ValueObject/Av1Settings.php b/src/ValueObject/Av1Settings.php index d2291d0..3d2d1cf 100644 --- a/src/ValueObject/Av1Settings.php +++ b/src/ValueObject/Av1Settings.php @@ -309,31 +309,31 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->adaptiveQuantization) { if (!Av1AdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "Av1AdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "Av1AdaptiveQuantization".', __CLASS__, $v)); } $payload['adaptiveQuantization'] = $v; } if (null !== $v = $this->bitDepth) { if (!Av1BitDepth::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitDepth" for "%s". The value "%s" is not a valid "Av1BitDepth".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitDepth" for "%s". The value "%s" is not a valid "Av1BitDepth".', __CLASS__, $v)); } $payload['bitDepth'] = $v; } if (null !== $v = $this->filmGrainSynthesis) { if (!Av1FilmGrainSynthesis::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "filmGrainSynthesis" for "%s". The value "%s" is not a valid "Av1FilmGrainSynthesis".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "filmGrainSynthesis" for "%s". The value "%s" is not a valid "Av1FilmGrainSynthesis".', __CLASS__, $v)); } $payload['filmGrainSynthesis'] = $v; } if (null !== $v = $this->framerateControl) { if (!Av1FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Av1FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Av1FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!Av1FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Av1FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Av1FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -357,7 +357,7 @@ public function requestBody(): array } if (null !== $v = $this->rateControlMode) { if (!Av1RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Av1RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Av1RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } @@ -366,7 +366,7 @@ public function requestBody(): array } if (null !== $v = $this->spatialAdaptiveQuantization) { if (!Av1SpatialAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "Av1SpatialAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "Av1SpatialAdaptiveQuantization".', __CLASS__, $v)); } $payload['spatialAdaptiveQuantization'] = $v; } diff --git a/src/ValueObject/AvcIntraSettings.php b/src/ValueObject/AvcIntraSettings.php index d92ff45..75f83a9 100644 --- a/src/ValueObject/AvcIntraSettings.php +++ b/src/ValueObject/AvcIntraSettings.php @@ -253,7 +253,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->avcIntraClass) { if (!AvcIntraClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "avcIntraClass" for "%s". The value "%s" is not a valid "AvcIntraClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "avcIntraClass" for "%s". The value "%s" is not a valid "AvcIntraClass".', __CLASS__, $v)); } $payload['avcIntraClass'] = $v; } @@ -262,13 +262,13 @@ public function requestBody(): array } if (null !== $v = $this->framerateControl) { if (!AvcIntraFramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "AvcIntraFramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "AvcIntraFramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!AvcIntraFramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "AvcIntraFramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "AvcIntraFramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -280,25 +280,25 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!AvcIntraInterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "AvcIntraInterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "AvcIntraInterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!AvcIntraScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "AvcIntraScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "AvcIntraScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->slowPal) { if (!AvcIntraSlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "AvcIntraSlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "AvcIntraSlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } if (null !== $v = $this->telecine) { if (!AvcIntraTelecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "AvcIntraTelecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "AvcIntraTelecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } diff --git a/src/ValueObject/AvcIntraUhdSettings.php b/src/ValueObject/AvcIntraUhdSettings.php index 48ab40f..94e86a8 100644 --- a/src/ValueObject/AvcIntraUhdSettings.php +++ b/src/ValueObject/AvcIntraUhdSettings.php @@ -57,7 +57,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->qualityTuningLevel) { if (!AvcIntraUhdQualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "AvcIntraUhdQualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "AvcIntraUhdQualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } diff --git a/src/ValueObject/BandwidthReductionFilter.php b/src/ValueObject/BandwidthReductionFilter.php index c9e27ce..285629a 100644 --- a/src/ValueObject/BandwidthReductionFilter.php +++ b/src/ValueObject/BandwidthReductionFilter.php @@ -82,13 +82,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->sharpening) { if (!BandwidthReductionFilterSharpening::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sharpening" for "%s". The value "%s" is not a valid "BandwidthReductionFilterSharpening".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sharpening" for "%s". The value "%s" is not a valid "BandwidthReductionFilterSharpening".', __CLASS__, $v)); } $payload['sharpening'] = $v; } if (null !== $v = $this->strength) { if (!BandwidthReductionFilterStrength::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "strength" for "%s". The value "%s" is not a valid "BandwidthReductionFilterStrength".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "strength" for "%s". The value "%s" is not a valid "BandwidthReductionFilterStrength".', __CLASS__, $v)); } $payload['strength'] = $v; } diff --git a/src/ValueObject/BurninDestinationSettings.php b/src/ValueObject/BurninDestinationSettings.php index 9f3bccc..4e84cdb 100644 --- a/src/ValueObject/BurninDestinationSettings.php +++ b/src/ValueObject/BurninDestinationSettings.php @@ -498,19 +498,19 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->alignment) { if (!BurninSubtitleAlignment::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "alignment" for "%s". The value "%s" is not a valid "BurninSubtitleAlignment".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "alignment" for "%s". The value "%s" is not a valid "BurninSubtitleAlignment".', __CLASS__, $v)); } $payload['alignment'] = $v; } if (null !== $v = $this->applyFontColor) { if (!BurninSubtitleApplyFontColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "applyFontColor" for "%s". The value "%s" is not a valid "BurninSubtitleApplyFontColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "applyFontColor" for "%s". The value "%s" is not a valid "BurninSubtitleApplyFontColor".', __CLASS__, $v)); } $payload['applyFontColor'] = $v; } if (null !== $v = $this->backgroundColor) { if (!BurninSubtitleBackgroundColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "backgroundColor" for "%s". The value "%s" is not a valid "BurninSubtitleBackgroundColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "backgroundColor" for "%s". The value "%s" is not a valid "BurninSubtitleBackgroundColor".', __CLASS__, $v)); } $payload['backgroundColor'] = $v; } @@ -519,13 +519,13 @@ public function requestBody(): array } if (null !== $v = $this->fallbackFont) { if (!BurninSubtitleFallbackFont::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fallbackFont" for "%s". The value "%s" is not a valid "BurninSubtitleFallbackFont".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fallbackFont" for "%s". The value "%s" is not a valid "BurninSubtitleFallbackFont".', __CLASS__, $v)); } $payload['fallbackFont'] = $v; } if (null !== $v = $this->fontColor) { if (!BurninSubtitleFontColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fontColor" for "%s". The value "%s" is not a valid "BurninSubtitleFontColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fontColor" for "%s". The value "%s" is not a valid "BurninSubtitleFontColor".', __CLASS__, $v)); } $payload['fontColor'] = $v; } @@ -549,7 +549,7 @@ public function requestBody(): array } if (null !== $v = $this->fontScript) { if (!FontScript::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fontScript" for "%s". The value "%s" is not a valid "FontScript".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fontScript" for "%s". The value "%s" is not a valid "FontScript".', __CLASS__, $v)); } $payload['fontScript'] = $v; } @@ -561,7 +561,7 @@ public function requestBody(): array } if (null !== $v = $this->outlineColor) { if (!BurninSubtitleOutlineColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "outlineColor" for "%s". The value "%s" is not a valid "BurninSubtitleOutlineColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "outlineColor" for "%s". The value "%s" is not a valid "BurninSubtitleOutlineColor".', __CLASS__, $v)); } $payload['outlineColor'] = $v; } @@ -570,7 +570,7 @@ public function requestBody(): array } if (null !== $v = $this->shadowColor) { if (!BurninSubtitleShadowColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "BurninSubtitleShadowColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "BurninSubtitleShadowColor".', __CLASS__, $v)); } $payload['shadowColor'] = $v; } @@ -585,13 +585,13 @@ public function requestBody(): array } if (null !== $v = $this->stylePassthrough) { if (!BurnInSubtitleStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "BurnInSubtitleStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "BurnInSubtitleStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } if (null !== $v = $this->teletextSpacing) { if (!BurninSubtitleTeletextSpacing::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "teletextSpacing" for "%s". The value "%s" is not a valid "BurninSubtitleTeletextSpacing".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "teletextSpacing" for "%s". The value "%s" is not a valid "BurninSubtitleTeletextSpacing".', __CLASS__, $v)); } $payload['teletextSpacing'] = $v; } diff --git a/src/ValueObject/CaptionDescription.php b/src/ValueObject/CaptionDescription.php index 85fb838..81ba594 100644 --- a/src/ValueObject/CaptionDescription.php +++ b/src/ValueObject/CaptionDescription.php @@ -136,7 +136,7 @@ public function requestBody(): array } if (null !== $v = $this->languageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['languageCode'] = $v; } diff --git a/src/ValueObject/CaptionDestinationSettings.php b/src/ValueObject/CaptionDestinationSettings.php index 3ca75c7..1cf8df7 100644 --- a/src/ValueObject/CaptionDestinationSettings.php +++ b/src/ValueObject/CaptionDestinationSettings.php @@ -212,7 +212,7 @@ public function requestBody(): array } if (null !== $v = $this->destinationType) { if (!CaptionDestinationType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "destinationType" for "%s". The value "%s" is not a valid "CaptionDestinationType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "destinationType" for "%s". The value "%s" is not a valid "CaptionDestinationType".', __CLASS__, $v)); } $payload['destinationType'] = $v; } diff --git a/src/ValueObject/CaptionSelector.php b/src/ValueObject/CaptionSelector.php index 64d2f64..43db5eb 100644 --- a/src/ValueObject/CaptionSelector.php +++ b/src/ValueObject/CaptionSelector.php @@ -95,7 +95,7 @@ public function requestBody(): array } if (null !== $v = $this->languageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['languageCode'] = $v; } diff --git a/src/ValueObject/CaptionSourceSettings.php b/src/ValueObject/CaptionSourceSettings.php index 62619b1..41660ee 100644 --- a/src/ValueObject/CaptionSourceSettings.php +++ b/src/ValueObject/CaptionSourceSettings.php @@ -180,7 +180,7 @@ public function requestBody(): array } if (null !== $v = $this->sourceType) { if (!CaptionSourceType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sourceType" for "%s". The value "%s" is not a valid "CaptionSourceType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sourceType" for "%s". The value "%s" is not a valid "CaptionSourceType".', __CLASS__, $v)); } $payload['sourceType'] = $v; } diff --git a/src/ValueObject/CmafEncryptionSettings.php b/src/ValueObject/CmafEncryptionSettings.php index bfb5e35..82a0581 100644 --- a/src/ValueObject/CmafEncryptionSettings.php +++ b/src/ValueObject/CmafEncryptionSettings.php @@ -144,13 +144,13 @@ public function requestBody(): array } if (null !== $v = $this->encryptionMethod) { if (!CmafEncryptionType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "encryptionMethod" for "%s". The value "%s" is not a valid "CmafEncryptionType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "encryptionMethod" for "%s". The value "%s" is not a valid "CmafEncryptionType".', __CLASS__, $v)); } $payload['encryptionMethod'] = $v; } if (null !== $v = $this->initializationVectorInManifest) { if (!CmafInitializationVectorInManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "initializationVectorInManifest" for "%s". The value "%s" is not a valid "CmafInitializationVectorInManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "initializationVectorInManifest" for "%s". The value "%s" is not a valid "CmafInitializationVectorInManifest".', __CLASS__, $v)); } $payload['initializationVectorInManifest'] = $v; } @@ -162,7 +162,7 @@ public function requestBody(): array } if (null !== $v = $this->type) { if (!CmafKeyProviderType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "CmafKeyProviderType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "CmafKeyProviderType".', __CLASS__, $v)); } $payload['type'] = $v; } diff --git a/src/ValueObject/CmafGroupSettings.php b/src/ValueObject/CmafGroupSettings.php index 05b8e76..0a655da 100644 --- a/src/ValueObject/CmafGroupSettings.php +++ b/src/ValueObject/CmafGroupSettings.php @@ -597,13 +597,13 @@ public function requestBody(): array } if (null !== $v = $this->clientCache) { if (!CmafClientCache::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "clientCache" for "%s". The value "%s" is not a valid "CmafClientCache".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "clientCache" for "%s". The value "%s" is not a valid "CmafClientCache".', __CLASS__, $v)); } $payload['clientCache'] = $v; } if (null !== $v = $this->codecSpecification) { if (!CmafCodecSpecification::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecSpecification" for "%s". The value "%s" is not a valid "CmafCodecSpecification".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecSpecification" for "%s". The value "%s" is not a valid "CmafCodecSpecification".', __CLASS__, $v)); } $payload['codecSpecification'] = $v; } @@ -612,7 +612,7 @@ public function requestBody(): array } if (null !== $v = $this->dashManifestStyle) { if (!DashManifestStyle::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v)); } $payload['dashManifestStyle'] = $v; } @@ -630,7 +630,7 @@ public function requestBody(): array } if (null !== $v = $this->imageBasedTrickPlay) { if (!CmafImageBasedTrickPlay::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "CmafImageBasedTrickPlay".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "CmafImageBasedTrickPlay".', __CLASS__, $v)); } $payload['imageBasedTrickPlay'] = $v; } @@ -639,13 +639,13 @@ public function requestBody(): array } if (null !== $v = $this->manifestCompression) { if (!CmafManifestCompression::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestCompression" for "%s". The value "%s" is not a valid "CmafManifestCompression".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestCompression" for "%s". The value "%s" is not a valid "CmafManifestCompression".', __CLASS__, $v)); } $payload['manifestCompression'] = $v; } if (null !== $v = $this->manifestDurationFormat) { if (!CmafManifestDurationFormat::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestDurationFormat" for "%s". The value "%s" is not a valid "CmafManifestDurationFormat".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestDurationFormat" for "%s". The value "%s" is not a valid "CmafManifestDurationFormat".', __CLASS__, $v)); } $payload['manifestDurationFormat'] = $v; } @@ -657,25 +657,25 @@ public function requestBody(): array } if (null !== $v = $this->mpdManifestBandwidthType) { if (!CmafMpdManifestBandwidthType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mpdManifestBandwidthType" for "%s". The value "%s" is not a valid "CmafMpdManifestBandwidthType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mpdManifestBandwidthType" for "%s". The value "%s" is not a valid "CmafMpdManifestBandwidthType".', __CLASS__, $v)); } $payload['mpdManifestBandwidthType'] = $v; } if (null !== $v = $this->mpdProfile) { if (!CmafMpdProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mpdProfile" for "%s". The value "%s" is not a valid "CmafMpdProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mpdProfile" for "%s". The value "%s" is not a valid "CmafMpdProfile".', __CLASS__, $v)); } $payload['mpdProfile'] = $v; } if (null !== $v = $this->ptsOffsetHandlingForBframes) { if (!CmafPtsOffsetHandlingForBFrames::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ptsOffsetHandlingForBFrames" for "%s". The value "%s" is not a valid "CmafPtsOffsetHandlingForBFrames".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ptsOffsetHandlingForBFrames" for "%s". The value "%s" is not a valid "CmafPtsOffsetHandlingForBFrames".', __CLASS__, $v)); } $payload['ptsOffsetHandlingForBFrames'] = $v; } if (null !== $v = $this->segmentControl) { if (!CmafSegmentControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "CmafSegmentControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "CmafSegmentControl".', __CLASS__, $v)); } $payload['segmentControl'] = $v; } @@ -684,43 +684,43 @@ public function requestBody(): array } if (null !== $v = $this->segmentLengthControl) { if (!CmafSegmentLengthControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "CmafSegmentLengthControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "CmafSegmentLengthControl".', __CLASS__, $v)); } $payload['segmentLengthControl'] = $v; } if (null !== $v = $this->streamInfResolution) { if (!CmafStreamInfResolution::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "streamInfResolution" for "%s". The value "%s" is not a valid "CmafStreamInfResolution".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "streamInfResolution" for "%s". The value "%s" is not a valid "CmafStreamInfResolution".', __CLASS__, $v)); } $payload['streamInfResolution'] = $v; } if (null !== $v = $this->targetDurationCompatibilityMode) { if (!CmafTargetDurationCompatibilityMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "targetDurationCompatibilityMode" for "%s". The value "%s" is not a valid "CmafTargetDurationCompatibilityMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "targetDurationCompatibilityMode" for "%s". The value "%s" is not a valid "CmafTargetDurationCompatibilityMode".', __CLASS__, $v)); } $payload['targetDurationCompatibilityMode'] = $v; } if (null !== $v = $this->videoCompositionOffsets) { if (!CmafVideoCompositionOffsets::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "videoCompositionOffsets" for "%s". The value "%s" is not a valid "CmafVideoCompositionOffsets".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "videoCompositionOffsets" for "%s". The value "%s" is not a valid "CmafVideoCompositionOffsets".', __CLASS__, $v)); } $payload['videoCompositionOffsets'] = $v; } if (null !== $v = $this->writeDashManifest) { if (!CmafWriteDASHManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "writeDashManifest" for "%s". The value "%s" is not a valid "CmafWriteDASHManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "writeDashManifest" for "%s". The value "%s" is not a valid "CmafWriteDASHManifest".', __CLASS__, $v)); } $payload['writeDashManifest'] = $v; } if (null !== $v = $this->writeHlsManifest) { if (!CmafWriteHLSManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "writeHlsManifest" for "%s". The value "%s" is not a valid "CmafWriteHLSManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "writeHlsManifest" for "%s". The value "%s" is not a valid "CmafWriteHLSManifest".', __CLASS__, $v)); } $payload['writeHlsManifest'] = $v; } if (null !== $v = $this->writeSegmentTimelineInRepresentation) { if (!CmafWriteSegmentTimelineInRepresentation::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "writeSegmentTimelineInRepresentation" for "%s". The value "%s" is not a valid "CmafWriteSegmentTimelineInRepresentation".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "writeSegmentTimelineInRepresentation" for "%s". The value "%s" is not a valid "CmafWriteSegmentTimelineInRepresentation".', __CLASS__, $v)); } $payload['writeSegmentTimelineInRepresentation'] = $v; } diff --git a/src/ValueObject/CmafImageBasedTrickPlaySettings.php b/src/ValueObject/CmafImageBasedTrickPlaySettings.php index 341941a..ad3d905 100644 --- a/src/ValueObject/CmafImageBasedTrickPlaySettings.php +++ b/src/ValueObject/CmafImageBasedTrickPlaySettings.php @@ -135,7 +135,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->intervalCadence) { if (!CmafIntervalCadence::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "CmafIntervalCadence".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "CmafIntervalCadence".', __CLASS__, $v)); } $payload['intervalCadence'] = $v; } diff --git a/src/ValueObject/CmfcSettings.php b/src/ValueObject/CmfcSettings.php index 69a9903..ac2c7b8 100644 --- a/src/ValueObject/CmfcSettings.php +++ b/src/ValueObject/CmfcSettings.php @@ -344,7 +344,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioDuration) { if (!CmfcAudioDuration::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "CmfcAudioDuration".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "CmfcAudioDuration".', __CLASS__, $v)); } $payload['audioDuration'] = $v; } @@ -356,55 +356,55 @@ public function requestBody(): array } if (null !== $v = $this->audioTrackType) { if (!CmfcAudioTrackType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioTrackType" for "%s". The value "%s" is not a valid "CmfcAudioTrackType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioTrackType" for "%s". The value "%s" is not a valid "CmfcAudioTrackType".', __CLASS__, $v)); } $payload['audioTrackType'] = $v; } if (null !== $v = $this->descriptiveVideoServiceFlag) { if (!CmfcDescriptiveVideoServiceFlag::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "descriptiveVideoServiceFlag" for "%s". The value "%s" is not a valid "CmfcDescriptiveVideoServiceFlag".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "descriptiveVideoServiceFlag" for "%s". The value "%s" is not a valid "CmfcDescriptiveVideoServiceFlag".', __CLASS__, $v)); } $payload['descriptiveVideoServiceFlag'] = $v; } if (null !== $v = $this->iframeOnlyManifest) { if (!CmfcIFrameOnlyManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "iFrameOnlyManifest" for "%s". The value "%s" is not a valid "CmfcIFrameOnlyManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "iFrameOnlyManifest" for "%s". The value "%s" is not a valid "CmfcIFrameOnlyManifest".', __CLASS__, $v)); } $payload['iFrameOnlyManifest'] = $v; } if (null !== $v = $this->klvMetadata) { if (!CmfcKlvMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "CmfcKlvMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "CmfcKlvMetadata".', __CLASS__, $v)); } $payload['klvMetadata'] = $v; } if (null !== $v = $this->manifestMetadataSignaling) { if (!CmfcManifestMetadataSignaling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestMetadataSignaling" for "%s". The value "%s" is not a valid "CmfcManifestMetadataSignaling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestMetadataSignaling" for "%s". The value "%s" is not a valid "CmfcManifestMetadataSignaling".', __CLASS__, $v)); } $payload['manifestMetadataSignaling'] = $v; } if (null !== $v = $this->scte35Esam) { if (!CmfcScte35Esam::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Esam" for "%s". The value "%s" is not a valid "CmfcScte35Esam".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Esam" for "%s". The value "%s" is not a valid "CmfcScte35Esam".', __CLASS__, $v)); } $payload['scte35Esam'] = $v; } if (null !== $v = $this->scte35Source) { if (!CmfcScte35Source::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "CmfcScte35Source".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "CmfcScte35Source".', __CLASS__, $v)); } $payload['scte35Source'] = $v; } if (null !== $v = $this->timedMetadata) { if (!CmfcTimedMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "CmfcTimedMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "CmfcTimedMetadata".', __CLASS__, $v)); } $payload['timedMetadata'] = $v; } if (null !== $v = $this->timedMetadataBoxVersion) { if (!CmfcTimedMetadataBoxVersion::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadataBoxVersion" for "%s". The value "%s" is not a valid "CmfcTimedMetadataBoxVersion".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadataBoxVersion" for "%s". The value "%s" is not a valid "CmfcTimedMetadataBoxVersion".', __CLASS__, $v)); } $payload['timedMetadataBoxVersion'] = $v; } diff --git a/src/ValueObject/ColorConversion3DLUTSetting.php b/src/ValueObject/ColorConversion3DLUTSetting.php index 4f7097c..f0cf402 100644 --- a/src/ValueObject/ColorConversion3DLUTSetting.php +++ b/src/ValueObject/ColorConversion3DLUTSetting.php @@ -124,7 +124,7 @@ public function requestBody(): array } if (null !== $v = $this->inputColorSpace) { if (!ColorSpace::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "inputColorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "inputColorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); } $payload['inputColorSpace'] = $v; } @@ -133,7 +133,7 @@ public function requestBody(): array } if (null !== $v = $this->outputColorSpace) { if (!ColorSpace::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "outputColorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "outputColorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); } $payload['outputColorSpace'] = $v; } diff --git a/src/ValueObject/ColorCorrector.php b/src/ValueObject/ColorCorrector.php index dfc9f2e..66dca90 100644 --- a/src/ValueObject/ColorCorrector.php +++ b/src/ValueObject/ColorCorrector.php @@ -255,7 +255,7 @@ public function requestBody(): array } if (null !== $v = $this->colorSpaceConversion) { if (!ColorSpaceConversion::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "colorSpaceConversion" for "%s". The value "%s" is not a valid "ColorSpaceConversion".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "colorSpaceConversion" for "%s". The value "%s" is not a valid "ColorSpaceConversion".', __CLASS__, $v)); } $payload['colorSpaceConversion'] = $v; } @@ -267,7 +267,7 @@ public function requestBody(): array } if (null !== $v = $this->hdrToSdrToneMapper) { if (!HDRToSDRToneMapper::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "hdrToSdrToneMapper" for "%s". The value "%s" is not a valid "HDRToSDRToneMapper".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "hdrToSdrToneMapper" for "%s". The value "%s" is not a valid "HDRToSDRToneMapper".', __CLASS__, $v)); } $payload['hdrToSdrToneMapper'] = $v; } @@ -279,7 +279,7 @@ public function requestBody(): array } if (null !== $v = $this->sampleRangeConversion) { if (!SampleRangeConversion::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sampleRangeConversion" for "%s". The value "%s" is not a valid "SampleRangeConversion".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sampleRangeConversion" for "%s". The value "%s" is not a valid "SampleRangeConversion".', __CLASS__, $v)); } $payload['sampleRangeConversion'] = $v; } diff --git a/src/ValueObject/ContainerSettings.php b/src/ValueObject/ContainerSettings.php index f80c95d..fe44b90 100644 --- a/src/ValueObject/ContainerSettings.php +++ b/src/ValueObject/ContainerSettings.php @@ -185,7 +185,7 @@ public function requestBody(): array } if (null !== $v = $this->container) { if (!ContainerType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "container" for "%s". The value "%s" is not a valid "ContainerType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "container" for "%s". The value "%s" is not a valid "ContainerType".', __CLASS__, $v)); } $payload['container'] = $v; } diff --git a/src/ValueObject/DashIsoEncryptionSettings.php b/src/ValueObject/DashIsoEncryptionSettings.php index 866dc76..63f2122 100644 --- a/src/ValueObject/DashIsoEncryptionSettings.php +++ b/src/ValueObject/DashIsoEncryptionSettings.php @@ -72,7 +72,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->playbackDeviceCompatibility) { if (!DashIsoPlaybackDeviceCompatibility::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "playbackDeviceCompatibility" for "%s". The value "%s" is not a valid "DashIsoPlaybackDeviceCompatibility".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "playbackDeviceCompatibility" for "%s". The value "%s" is not a valid "DashIsoPlaybackDeviceCompatibility".', __CLASS__, $v)); } $payload['playbackDeviceCompatibility'] = $v; } diff --git a/src/ValueObject/DashIsoGroupSettings.php b/src/ValueObject/DashIsoGroupSettings.php index 6a10a94..59c0a31 100644 --- a/src/ValueObject/DashIsoGroupSettings.php +++ b/src/ValueObject/DashIsoGroupSettings.php @@ -479,7 +479,7 @@ public function requestBody(): array } if (null !== $v = $this->audioChannelConfigSchemeIdUri) { if (!DashIsoGroupAudioChannelConfigSchemeIdUri::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioChannelConfigSchemeIdUri" for "%s". The value "%s" is not a valid "DashIsoGroupAudioChannelConfigSchemeIdUri".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioChannelConfigSchemeIdUri" for "%s". The value "%s" is not a valid "DashIsoGroupAudioChannelConfigSchemeIdUri".', __CLASS__, $v)); } $payload['audioChannelConfigSchemeIdUri'] = $v; } @@ -491,7 +491,7 @@ public function requestBody(): array } if (null !== $v = $this->dashManifestStyle) { if (!DashManifestStyle::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v)); } $payload['dashManifestStyle'] = $v; } @@ -509,13 +509,13 @@ public function requestBody(): array } if (null !== $v = $this->hbbtvCompliance) { if (!DashIsoHbbtvCompliance::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "hbbtvCompliance" for "%s". The value "%s" is not a valid "DashIsoHbbtvCompliance".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "hbbtvCompliance" for "%s". The value "%s" is not a valid "DashIsoHbbtvCompliance".', __CLASS__, $v)); } $payload['hbbtvCompliance'] = $v; } if (null !== $v = $this->imageBasedTrickPlay) { if (!DashIsoImageBasedTrickPlay::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "DashIsoImageBasedTrickPlay".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "DashIsoImageBasedTrickPlay".', __CLASS__, $v)); } $payload['imageBasedTrickPlay'] = $v; } @@ -530,25 +530,25 @@ public function requestBody(): array } if (null !== $v = $this->mpdManifestBandwidthType) { if (!DashIsoMpdManifestBandwidthType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mpdManifestBandwidthType" for "%s". The value "%s" is not a valid "DashIsoMpdManifestBandwidthType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mpdManifestBandwidthType" for "%s". The value "%s" is not a valid "DashIsoMpdManifestBandwidthType".', __CLASS__, $v)); } $payload['mpdManifestBandwidthType'] = $v; } if (null !== $v = $this->mpdProfile) { if (!DashIsoMpdProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mpdProfile" for "%s". The value "%s" is not a valid "DashIsoMpdProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mpdProfile" for "%s". The value "%s" is not a valid "DashIsoMpdProfile".', __CLASS__, $v)); } $payload['mpdProfile'] = $v; } if (null !== $v = $this->ptsOffsetHandlingForBframes) { if (!DashIsoPtsOffsetHandlingForBFrames::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ptsOffsetHandlingForBFrames" for "%s". The value "%s" is not a valid "DashIsoPtsOffsetHandlingForBFrames".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ptsOffsetHandlingForBFrames" for "%s". The value "%s" is not a valid "DashIsoPtsOffsetHandlingForBFrames".', __CLASS__, $v)); } $payload['ptsOffsetHandlingForBFrames'] = $v; } if (null !== $v = $this->segmentControl) { if (!DashIsoSegmentControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "DashIsoSegmentControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "DashIsoSegmentControl".', __CLASS__, $v)); } $payload['segmentControl'] = $v; } @@ -557,19 +557,19 @@ public function requestBody(): array } if (null !== $v = $this->segmentLengthControl) { if (!DashIsoSegmentLengthControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "DashIsoSegmentLengthControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "DashIsoSegmentLengthControl".', __CLASS__, $v)); } $payload['segmentLengthControl'] = $v; } if (null !== $v = $this->videoCompositionOffsets) { if (!DashIsoVideoCompositionOffsets::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "videoCompositionOffsets" for "%s". The value "%s" is not a valid "DashIsoVideoCompositionOffsets".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "videoCompositionOffsets" for "%s". The value "%s" is not a valid "DashIsoVideoCompositionOffsets".', __CLASS__, $v)); } $payload['videoCompositionOffsets'] = $v; } if (null !== $v = $this->writeSegmentTimelineInRepresentation) { if (!DashIsoWriteSegmentTimelineInRepresentation::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "writeSegmentTimelineInRepresentation" for "%s". The value "%s" is not a valid "DashIsoWriteSegmentTimelineInRepresentation".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "writeSegmentTimelineInRepresentation" for "%s". The value "%s" is not a valid "DashIsoWriteSegmentTimelineInRepresentation".', __CLASS__, $v)); } $payload['writeSegmentTimelineInRepresentation'] = $v; } diff --git a/src/ValueObject/DashIsoImageBasedTrickPlaySettings.php b/src/ValueObject/DashIsoImageBasedTrickPlaySettings.php index 590d3e6..d9454ff 100644 --- a/src/ValueObject/DashIsoImageBasedTrickPlaySettings.php +++ b/src/ValueObject/DashIsoImageBasedTrickPlaySettings.php @@ -135,7 +135,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->intervalCadence) { if (!DashIsoIntervalCadence::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "DashIsoIntervalCadence".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "DashIsoIntervalCadence".', __CLASS__, $v)); } $payload['intervalCadence'] = $v; } diff --git a/src/ValueObject/Deinterlacer.php b/src/ValueObject/Deinterlacer.php index f8bfce4..b2e25a2 100644 --- a/src/ValueObject/Deinterlacer.php +++ b/src/ValueObject/Deinterlacer.php @@ -102,19 +102,19 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->algorithm) { if (!DeinterlaceAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "algorithm" for "%s". The value "%s" is not a valid "DeinterlaceAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "algorithm" for "%s". The value "%s" is not a valid "DeinterlaceAlgorithm".', __CLASS__, $v)); } $payload['algorithm'] = $v; } if (null !== $v = $this->control) { if (!DeinterlacerControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "control" for "%s". The value "%s" is not a valid "DeinterlacerControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "control" for "%s". The value "%s" is not a valid "DeinterlacerControl".', __CLASS__, $v)); } $payload['control'] = $v; } if (null !== $v = $this->mode) { if (!DeinterlacerMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "DeinterlacerMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mode" for "%s". The value "%s" is not a valid "DeinterlacerMode".', __CLASS__, $v)); } $payload['mode'] = $v; } diff --git a/src/ValueObject/DolbyVision.php b/src/ValueObject/DolbyVision.php index ffdc345..a1e7027 100644 --- a/src/ValueObject/DolbyVision.php +++ b/src/ValueObject/DolbyVision.php @@ -118,19 +118,19 @@ public function requestBody(): array } if (null !== $v = $this->l6Mode) { if (!DolbyVisionLevel6Mode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "l6Mode" for "%s". The value "%s" is not a valid "DolbyVisionLevel6Mode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "l6Mode" for "%s". The value "%s" is not a valid "DolbyVisionLevel6Mode".', __CLASS__, $v)); } $payload['l6Mode'] = $v; } if (null !== $v = $this->mapping) { if (!DolbyVisionMapping::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mapping" for "%s". The value "%s" is not a valid "DolbyVisionMapping".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mapping" for "%s". The value "%s" is not a valid "DolbyVisionMapping".', __CLASS__, $v)); } $payload['mapping'] = $v; } if (null !== $v = $this->profile) { if (!DolbyVisionProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "DolbyVisionProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "DolbyVisionProfile".', __CLASS__, $v)); } $payload['profile'] = $v; } diff --git a/src/ValueObject/DvbSdtSettings.php b/src/ValueObject/DvbSdtSettings.php index e2a8775..26b0b9c 100644 --- a/src/ValueObject/DvbSdtSettings.php +++ b/src/ValueObject/DvbSdtSettings.php @@ -102,7 +102,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->outputSdt) { if (!OutputSdt::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "outputSdt" for "%s". The value "%s" is not a valid "OutputSdt".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "outputSdt" for "%s". The value "%s" is not a valid "OutputSdt".', __CLASS__, $v)); } $payload['outputSdt'] = $v; } diff --git a/src/ValueObject/DvbSubDestinationSettings.php b/src/ValueObject/DvbSubDestinationSettings.php index dd07dd7..d148d7c 100644 --- a/src/ValueObject/DvbSubDestinationSettings.php +++ b/src/ValueObject/DvbSubDestinationSettings.php @@ -629,19 +629,19 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->alignment) { if (!DvbSubtitleAlignment::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "alignment" for "%s". The value "%s" is not a valid "DvbSubtitleAlignment".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "alignment" for "%s". The value "%s" is not a valid "DvbSubtitleAlignment".', __CLASS__, $v)); } $payload['alignment'] = $v; } if (null !== $v = $this->applyFontColor) { if (!DvbSubtitleApplyFontColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "applyFontColor" for "%s". The value "%s" is not a valid "DvbSubtitleApplyFontColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "applyFontColor" for "%s". The value "%s" is not a valid "DvbSubtitleApplyFontColor".', __CLASS__, $v)); } $payload['applyFontColor'] = $v; } if (null !== $v = $this->backgroundColor) { if (!DvbSubtitleBackgroundColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "backgroundColor" for "%s". The value "%s" is not a valid "DvbSubtitleBackgroundColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "backgroundColor" for "%s". The value "%s" is not a valid "DvbSubtitleBackgroundColor".', __CLASS__, $v)); } $payload['backgroundColor'] = $v; } @@ -650,7 +650,7 @@ public function requestBody(): array } if (null !== $v = $this->ddsHandling) { if (!DvbddsHandling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ddsHandling" for "%s". The value "%s" is not a valid "DvbddsHandling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ddsHandling" for "%s". The value "%s" is not a valid "DvbddsHandling".', __CLASS__, $v)); } $payload['ddsHandling'] = $v; } @@ -662,13 +662,13 @@ public function requestBody(): array } if (null !== $v = $this->fallbackFont) { if (!DvbSubSubtitleFallbackFont::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fallbackFont" for "%s". The value "%s" is not a valid "DvbSubSubtitleFallbackFont".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fallbackFont" for "%s". The value "%s" is not a valid "DvbSubSubtitleFallbackFont".', __CLASS__, $v)); } $payload['fallbackFont'] = $v; } if (null !== $v = $this->fontColor) { if (!DvbSubtitleFontColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fontColor" for "%s". The value "%s" is not a valid "DvbSubtitleFontColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fontColor" for "%s". The value "%s" is not a valid "DvbSubtitleFontColor".', __CLASS__, $v)); } $payload['fontColor'] = $v; } @@ -692,7 +692,7 @@ public function requestBody(): array } if (null !== $v = $this->fontScript) { if (!FontScript::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fontScript" for "%s". The value "%s" is not a valid "FontScript".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fontScript" for "%s". The value "%s" is not a valid "FontScript".', __CLASS__, $v)); } $payload['fontScript'] = $v; } @@ -707,7 +707,7 @@ public function requestBody(): array } if (null !== $v = $this->outlineColor) { if (!DvbSubtitleOutlineColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "outlineColor" for "%s". The value "%s" is not a valid "DvbSubtitleOutlineColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "outlineColor" for "%s". The value "%s" is not a valid "DvbSubtitleOutlineColor".', __CLASS__, $v)); } $payload['outlineColor'] = $v; } @@ -716,7 +716,7 @@ public function requestBody(): array } if (null !== $v = $this->shadowColor) { if (!DvbSubtitleShadowColor::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "DvbSubtitleShadowColor".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "DvbSubtitleShadowColor".', __CLASS__, $v)); } $payload['shadowColor'] = $v; } @@ -731,19 +731,19 @@ public function requestBody(): array } if (null !== $v = $this->stylePassthrough) { if (!DvbSubtitleStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "DvbSubtitleStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "DvbSubtitleStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } if (null !== $v = $this->subtitlingType) { if (!DvbSubtitlingType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "subtitlingType" for "%s". The value "%s" is not a valid "DvbSubtitlingType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "subtitlingType" for "%s". The value "%s" is not a valid "DvbSubtitlingType".', __CLASS__, $v)); } $payload['subtitlingType'] = $v; } if (null !== $v = $this->teletextSpacing) { if (!DvbSubtitleTeletextSpacing::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "teletextSpacing" for "%s". The value "%s" is not a valid "DvbSubtitleTeletextSpacing".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "teletextSpacing" for "%s". The value "%s" is not a valid "DvbSubtitleTeletextSpacing".', __CLASS__, $v)); } $payload['teletextSpacing'] = $v; } diff --git a/src/ValueObject/Eac3AtmosSettings.php b/src/ValueObject/Eac3AtmosSettings.php index d89f2ac..afbe12b 100644 --- a/src/ValueObject/Eac3AtmosSettings.php +++ b/src/ValueObject/Eac3AtmosSettings.php @@ -374,43 +374,43 @@ public function requestBody(): array } if (null !== $v = $this->bitstreamMode) { if (!Eac3AtmosBitstreamMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Eac3AtmosBitstreamMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Eac3AtmosBitstreamMode".', __CLASS__, $v)); } $payload['bitstreamMode'] = $v; } if (null !== $v = $this->codingMode) { if (!Eac3AtmosCodingMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Eac3AtmosCodingMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Eac3AtmosCodingMode".', __CLASS__, $v)); } $payload['codingMode'] = $v; } if (null !== $v = $this->dialogueIntelligence) { if (!Eac3AtmosDialogueIntelligence::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dialogueIntelligence" for "%s". The value "%s" is not a valid "Eac3AtmosDialogueIntelligence".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dialogueIntelligence" for "%s". The value "%s" is not a valid "Eac3AtmosDialogueIntelligence".', __CLASS__, $v)); } $payload['dialogueIntelligence'] = $v; } if (null !== $v = $this->downmixControl) { if (!Eac3AtmosDownmixControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "downmixControl" for "%s". The value "%s" is not a valid "Eac3AtmosDownmixControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "downmixControl" for "%s". The value "%s" is not a valid "Eac3AtmosDownmixControl".', __CLASS__, $v)); } $payload['downmixControl'] = $v; } if (null !== $v = $this->dynamicRangeCompressionLine) { if (!Eac3AtmosDynamicRangeCompressionLine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeCompressionLine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeCompressionLine".', __CLASS__, $v)); } $payload['dynamicRangeCompressionLine'] = $v; } if (null !== $v = $this->dynamicRangeCompressionRf) { if (!Eac3AtmosDynamicRangeCompressionRf::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeCompressionRf".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeCompressionRf".', __CLASS__, $v)); } $payload['dynamicRangeCompressionRf'] = $v; } if (null !== $v = $this->dynamicRangeControl) { if (!Eac3AtmosDynamicRangeControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeControl" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeControl" for "%s". The value "%s" is not a valid "Eac3AtmosDynamicRangeControl".', __CLASS__, $v)); } $payload['dynamicRangeControl'] = $v; } @@ -428,7 +428,7 @@ public function requestBody(): array } if (null !== $v = $this->meteringMode) { if (!Eac3AtmosMeteringMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "meteringMode" for "%s". The value "%s" is not a valid "Eac3AtmosMeteringMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "meteringMode" for "%s". The value "%s" is not a valid "Eac3AtmosMeteringMode".', __CLASS__, $v)); } $payload['meteringMode'] = $v; } @@ -440,13 +440,13 @@ public function requestBody(): array } if (null !== $v = $this->stereoDownmix) { if (!Eac3AtmosStereoDownmix::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stereoDownmix" for "%s". The value "%s" is not a valid "Eac3AtmosStereoDownmix".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stereoDownmix" for "%s". The value "%s" is not a valid "Eac3AtmosStereoDownmix".', __CLASS__, $v)); } $payload['stereoDownmix'] = $v; } if (null !== $v = $this->surroundExMode) { if (!Eac3AtmosSurroundExMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "surroundExMode" for "%s". The value "%s" is not a valid "Eac3AtmosSurroundExMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "surroundExMode" for "%s". The value "%s" is not a valid "Eac3AtmosSurroundExMode".', __CLASS__, $v)); } $payload['surroundExMode'] = $v; } diff --git a/src/ValueObject/Eac3Settings.php b/src/ValueObject/Eac3Settings.php index 0ee7d4e..cdabb0d 100644 --- a/src/ValueObject/Eac3Settings.php +++ b/src/ValueObject/Eac3Settings.php @@ -440,7 +440,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->attenuationControl) { if (!Eac3AttenuationControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "attenuationControl" for "%s". The value "%s" is not a valid "Eac3AttenuationControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "attenuationControl" for "%s". The value "%s" is not a valid "Eac3AttenuationControl".', __CLASS__, $v)); } $payload['attenuationControl'] = $v; } @@ -449,19 +449,19 @@ public function requestBody(): array } if (null !== $v = $this->bitstreamMode) { if (!Eac3BitstreamMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Eac3BitstreamMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitstreamMode" for "%s". The value "%s" is not a valid "Eac3BitstreamMode".', __CLASS__, $v)); } $payload['bitstreamMode'] = $v; } if (null !== $v = $this->codingMode) { if (!Eac3CodingMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Eac3CodingMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codingMode" for "%s". The value "%s" is not a valid "Eac3CodingMode".', __CLASS__, $v)); } $payload['codingMode'] = $v; } if (null !== $v = $this->dcFilter) { if (!Eac3DcFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dcFilter" for "%s". The value "%s" is not a valid "Eac3DcFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dcFilter" for "%s". The value "%s" is not a valid "Eac3DcFilter".', __CLASS__, $v)); } $payload['dcFilter'] = $v; } @@ -470,25 +470,25 @@ public function requestBody(): array } if (null !== $v = $this->dynamicRangeCompressionLine) { if (!Eac3DynamicRangeCompressionLine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Eac3DynamicRangeCompressionLine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionLine" for "%s". The value "%s" is not a valid "Eac3DynamicRangeCompressionLine".', __CLASS__, $v)); } $payload['dynamicRangeCompressionLine'] = $v; } if (null !== $v = $this->dynamicRangeCompressionRf) { if (!Eac3DynamicRangeCompressionRf::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Eac3DynamicRangeCompressionRf".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicRangeCompressionRf" for "%s". The value "%s" is not a valid "Eac3DynamicRangeCompressionRf".', __CLASS__, $v)); } $payload['dynamicRangeCompressionRf'] = $v; } if (null !== $v = $this->lfeControl) { if (!Eac3LfeControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "lfeControl" for "%s". The value "%s" is not a valid "Eac3LfeControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "lfeControl" for "%s". The value "%s" is not a valid "Eac3LfeControl".', __CLASS__, $v)); } $payload['lfeControl'] = $v; } if (null !== $v = $this->lfeFilter) { if (!Eac3LfeFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "lfeFilter" for "%s". The value "%s" is not a valid "Eac3LfeFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "lfeFilter" for "%s". The value "%s" is not a valid "Eac3LfeFilter".', __CLASS__, $v)); } $payload['lfeFilter'] = $v; } @@ -506,19 +506,19 @@ public function requestBody(): array } if (null !== $v = $this->metadataControl) { if (!Eac3MetadataControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "metadataControl" for "%s". The value "%s" is not a valid "Eac3MetadataControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "metadataControl" for "%s". The value "%s" is not a valid "Eac3MetadataControl".', __CLASS__, $v)); } $payload['metadataControl'] = $v; } if (null !== $v = $this->passthroughControl) { if (!Eac3PassthroughControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "passthroughControl" for "%s". The value "%s" is not a valid "Eac3PassthroughControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "passthroughControl" for "%s". The value "%s" is not a valid "Eac3PassthroughControl".', __CLASS__, $v)); } $payload['passthroughControl'] = $v; } if (null !== $v = $this->phaseControl) { if (!Eac3PhaseControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "phaseControl" for "%s". The value "%s" is not a valid "Eac3PhaseControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "phaseControl" for "%s". The value "%s" is not a valid "Eac3PhaseControl".', __CLASS__, $v)); } $payload['phaseControl'] = $v; } @@ -527,19 +527,19 @@ public function requestBody(): array } if (null !== $v = $this->stereoDownmix) { if (!Eac3StereoDownmix::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stereoDownmix" for "%s". The value "%s" is not a valid "Eac3StereoDownmix".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stereoDownmix" for "%s". The value "%s" is not a valid "Eac3StereoDownmix".', __CLASS__, $v)); } $payload['stereoDownmix'] = $v; } if (null !== $v = $this->surroundExMode) { if (!Eac3SurroundExMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "surroundExMode" for "%s". The value "%s" is not a valid "Eac3SurroundExMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "surroundExMode" for "%s". The value "%s" is not a valid "Eac3SurroundExMode".', __CLASS__, $v)); } $payload['surroundExMode'] = $v; } if (null !== $v = $this->surroundMode) { if (!Eac3SurroundMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "surroundMode" for "%s". The value "%s" is not a valid "Eac3SurroundMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "surroundMode" for "%s". The value "%s" is not a valid "Eac3SurroundMode".', __CLASS__, $v)); } $payload['surroundMode'] = $v; } diff --git a/src/ValueObject/EmbeddedSourceSettings.php b/src/ValueObject/EmbeddedSourceSettings.php index 0e6303e..53e4c35 100644 --- a/src/ValueObject/EmbeddedSourceSettings.php +++ b/src/ValueObject/EmbeddedSourceSettings.php @@ -106,7 +106,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->convert608To708) { if (!EmbeddedConvert608To708::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "EmbeddedConvert608To708".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "EmbeddedConvert608To708".', __CLASS__, $v)); } $payload['convert608To708'] = $v; } @@ -118,7 +118,7 @@ public function requestBody(): array } if (null !== $v = $this->terminateCaptions) { if (!EmbeddedTerminateCaptions::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "terminateCaptions" for "%s". The value "%s" is not a valid "EmbeddedTerminateCaptions".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "terminateCaptions" for "%s". The value "%s" is not a valid "EmbeddedTerminateCaptions".', __CLASS__, $v)); } $payload['terminateCaptions'] = $v; } diff --git a/src/ValueObject/ExtendedDataServices.php b/src/ValueObject/ExtendedDataServices.php index cdacb70..a951927 100644 --- a/src/ValueObject/ExtendedDataServices.php +++ b/src/ValueObject/ExtendedDataServices.php @@ -76,13 +76,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->copyProtectionAction) { if (!CopyProtectionAction::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "copyProtectionAction" for "%s". The value "%s" is not a valid "CopyProtectionAction".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "copyProtectionAction" for "%s". The value "%s" is not a valid "CopyProtectionAction".', __CLASS__, $v)); } $payload['copyProtectionAction'] = $v; } if (null !== $v = $this->vchipAction) { if (!VchipAction::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "vchipAction" for "%s". The value "%s" is not a valid "VchipAction".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "vchipAction" for "%s". The value "%s" is not a valid "VchipAction".', __CLASS__, $v)); } $payload['vchipAction'] = $v; } diff --git a/src/ValueObject/F4vSettings.php b/src/ValueObject/F4vSettings.php index 7aca7fe..b207a03 100644 --- a/src/ValueObject/F4vSettings.php +++ b/src/ValueObject/F4vSettings.php @@ -54,7 +54,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->moovPlacement) { if (!F4vMoovPlacement::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "moovPlacement" for "%s". The value "%s" is not a valid "F4vMoovPlacement".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "moovPlacement" for "%s". The value "%s" is not a valid "F4vMoovPlacement".', __CLASS__, $v)); } $payload['moovPlacement'] = $v; } diff --git a/src/ValueObject/FileSourceSettings.php b/src/ValueObject/FileSourceSettings.php index 295e18f..f9d055f 100644 --- a/src/ValueObject/FileSourceSettings.php +++ b/src/ValueObject/FileSourceSettings.php @@ -156,13 +156,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->convert608To708) { if (!FileSourceConvert608To708::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "FileSourceConvert608To708".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "convert608To708" for "%s". The value "%s" is not a valid "FileSourceConvert608To708".', __CLASS__, $v)); } $payload['convert608To708'] = $v; } if (null !== $v = $this->convertPaintToPop) { if (!CaptionSourceConvertPaintOnToPopOn::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "convertPaintToPop" for "%s". The value "%s" is not a valid "CaptionSourceConvertPaintOnToPopOn".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "convertPaintToPop" for "%s". The value "%s" is not a valid "CaptionSourceConvertPaintOnToPopOn".', __CLASS__, $v)); } $payload['convertPaintToPop'] = $v; } @@ -177,7 +177,7 @@ public function requestBody(): array } if (null !== $v = $this->timeDeltaUnits) { if (!FileSourceTimeDeltaUnits::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timeDeltaUnits" for "%s". The value "%s" is not a valid "FileSourceTimeDeltaUnits".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timeDeltaUnits" for "%s". The value "%s" is not a valid "FileSourceTimeDeltaUnits".', __CLASS__, $v)); } $payload['timeDeltaUnits'] = $v; } diff --git a/src/ValueObject/H264Settings.php b/src/ValueObject/H264Settings.php index 5779c53..40606b5 100644 --- a/src/ValueObject/H264Settings.php +++ b/src/ValueObject/H264Settings.php @@ -924,7 +924,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->adaptiveQuantization) { if (!H264AdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "H264AdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "H264AdaptiveQuantization".', __CLASS__, $v)); } $payload['adaptiveQuantization'] = $v; } @@ -936,55 +936,55 @@ public function requestBody(): array } if (null !== $v = $this->codecLevel) { if (!H264CodecLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "H264CodecLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "H264CodecLevel".', __CLASS__, $v)); } $payload['codecLevel'] = $v; } if (null !== $v = $this->codecProfile) { if (!H264CodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "H264CodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "H264CodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->dynamicSubGop) { if (!H264DynamicSubGop::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "H264DynamicSubGop".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "H264DynamicSubGop".', __CLASS__, $v)); } $payload['dynamicSubGop'] = $v; } if (null !== $v = $this->endOfStreamMarkers) { if (!H264EndOfStreamMarkers::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "endOfStreamMarkers" for "%s". The value "%s" is not a valid "H264EndOfStreamMarkers".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "endOfStreamMarkers" for "%s". The value "%s" is not a valid "H264EndOfStreamMarkers".', __CLASS__, $v)); } $payload['endOfStreamMarkers'] = $v; } if (null !== $v = $this->entropyEncoding) { if (!H264EntropyEncoding::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "entropyEncoding" for "%s". The value "%s" is not a valid "H264EntropyEncoding".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "entropyEncoding" for "%s". The value "%s" is not a valid "H264EntropyEncoding".', __CLASS__, $v)); } $payload['entropyEncoding'] = $v; } if (null !== $v = $this->fieldEncoding) { if (!H264FieldEncoding::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fieldEncoding" for "%s". The value "%s" is not a valid "H264FieldEncoding".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fieldEncoding" for "%s". The value "%s" is not a valid "H264FieldEncoding".', __CLASS__, $v)); } $payload['fieldEncoding'] = $v; } if (null !== $v = $this->flickerAdaptiveQuantization) { if (!H264FlickerAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264FlickerAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264FlickerAdaptiveQuantization".', __CLASS__, $v)); } $payload['flickerAdaptiveQuantization'] = $v; } if (null !== $v = $this->framerateControl) { if (!H264FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "H264FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "H264FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!H264FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "H264FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "H264FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -996,7 +996,7 @@ public function requestBody(): array } if (null !== $v = $this->gopBreference) { if (!H264GopBReference::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "H264GopBReference".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "H264GopBReference".', __CLASS__, $v)); } $payload['gopBReference'] = $v; } @@ -1008,7 +1008,7 @@ public function requestBody(): array } if (null !== $v = $this->gopSizeUnits) { if (!H264GopSizeUnits::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "H264GopSizeUnits".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "H264GopSizeUnits".', __CLASS__, $v)); } $payload['gopSizeUnits'] = $v; } @@ -1023,7 +1023,7 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!H264InterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "H264InterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "H264InterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } @@ -1041,7 +1041,7 @@ public function requestBody(): array } if (null !== $v = $this->parControl) { if (!H264ParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "H264ParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "H264ParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -1053,7 +1053,7 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!H264QualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "H264QualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "H264QualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } @@ -1062,25 +1062,25 @@ public function requestBody(): array } if (null !== $v = $this->rateControlMode) { if (!H264RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "H264RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "H264RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } if (null !== $v = $this->repeatPps) { if (!H264RepeatPps::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "repeatPps" for "%s". The value "%s" is not a valid "H264RepeatPps".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "repeatPps" for "%s". The value "%s" is not a valid "H264RepeatPps".', __CLASS__, $v)); } $payload['repeatPps'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!H264ScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "H264ScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "H264ScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->sceneChangeDetect) { if (!H264SceneChangeDetect::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "H264SceneChangeDetect".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "H264SceneChangeDetect".', __CLASS__, $v)); } $payload['sceneChangeDetect'] = $v; } @@ -1089,7 +1089,7 @@ public function requestBody(): array } if (null !== $v = $this->slowPal) { if (!H264SlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "H264SlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "H264SlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } @@ -1098,31 +1098,31 @@ public function requestBody(): array } if (null !== $v = $this->spatialAdaptiveQuantization) { if (!H264SpatialAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264SpatialAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264SpatialAdaptiveQuantization".', __CLASS__, $v)); } $payload['spatialAdaptiveQuantization'] = $v; } if (null !== $v = $this->syntax) { if (!H264Syntax::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "syntax" for "%s". The value "%s" is not a valid "H264Syntax".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "syntax" for "%s". The value "%s" is not a valid "H264Syntax".', __CLASS__, $v)); } $payload['syntax'] = $v; } if (null !== $v = $this->telecine) { if (!H264Telecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "H264Telecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "H264Telecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } if (null !== $v = $this->temporalAdaptiveQuantization) { if (!H264TemporalAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264TemporalAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "H264TemporalAdaptiveQuantization".', __CLASS__, $v)); } $payload['temporalAdaptiveQuantization'] = $v; } if (null !== $v = $this->unregisteredSeiTimecode) { if (!H264UnregisteredSeiTimecode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "unregisteredSeiTimecode" for "%s". The value "%s" is not a valid "H264UnregisteredSeiTimecode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "unregisteredSeiTimecode" for "%s". The value "%s" is not a valid "H264UnregisteredSeiTimecode".', __CLASS__, $v)); } $payload['unregisteredSeiTimecode'] = $v; } diff --git a/src/ValueObject/H265Settings.php b/src/ValueObject/H265Settings.php index eeea72c..e256f01 100644 --- a/src/ValueObject/H265Settings.php +++ b/src/ValueObject/H265Settings.php @@ -913,13 +913,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->adaptiveQuantization) { if (!H265AdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "H265AdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "H265AdaptiveQuantization".', __CLASS__, $v)); } $payload['adaptiveQuantization'] = $v; } if (null !== $v = $this->alternateTransferFunctionSei) { if (!H265AlternateTransferFunctionSei::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "alternateTransferFunctionSei" for "%s". The value "%s" is not a valid "H265AlternateTransferFunctionSei".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "alternateTransferFunctionSei" for "%s". The value "%s" is not a valid "H265AlternateTransferFunctionSei".', __CLASS__, $v)); } $payload['alternateTransferFunctionSei'] = $v; } @@ -931,43 +931,43 @@ public function requestBody(): array } if (null !== $v = $this->codecLevel) { if (!H265CodecLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "H265CodecLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "H265CodecLevel".', __CLASS__, $v)); } $payload['codecLevel'] = $v; } if (null !== $v = $this->codecProfile) { if (!H265CodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "H265CodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "H265CodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->dynamicSubGop) { if (!H265DynamicSubGop::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "H265DynamicSubGop".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "H265DynamicSubGop".', __CLASS__, $v)); } $payload['dynamicSubGop'] = $v; } if (null !== $v = $this->endOfStreamMarkers) { if (!H265EndOfStreamMarkers::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "endOfStreamMarkers" for "%s". The value "%s" is not a valid "H265EndOfStreamMarkers".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "endOfStreamMarkers" for "%s". The value "%s" is not a valid "H265EndOfStreamMarkers".', __CLASS__, $v)); } $payload['endOfStreamMarkers'] = $v; } if (null !== $v = $this->flickerAdaptiveQuantization) { if (!H265FlickerAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265FlickerAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265FlickerAdaptiveQuantization".', __CLASS__, $v)); } $payload['flickerAdaptiveQuantization'] = $v; } if (null !== $v = $this->framerateControl) { if (!H265FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "H265FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "H265FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!H265FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "H265FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "H265FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -979,7 +979,7 @@ public function requestBody(): array } if (null !== $v = $this->gopBreference) { if (!H265GopBReference::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "H265GopBReference".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "H265GopBReference".', __CLASS__, $v)); } $payload['gopBReference'] = $v; } @@ -991,7 +991,7 @@ public function requestBody(): array } if (null !== $v = $this->gopSizeUnits) { if (!H265GopSizeUnits::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "H265GopSizeUnits".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "H265GopSizeUnits".', __CLASS__, $v)); } $payload['gopSizeUnits'] = $v; } @@ -1006,7 +1006,7 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!H265InterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "H265InterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "H265InterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } @@ -1024,7 +1024,7 @@ public function requestBody(): array } if (null !== $v = $this->parControl) { if (!H265ParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "H265ParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "H265ParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -1036,7 +1036,7 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!H265QualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "H265QualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "H265QualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } @@ -1045,25 +1045,25 @@ public function requestBody(): array } if (null !== $v = $this->rateControlMode) { if (!H265RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "H265RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "H265RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } if (null !== $v = $this->sampleAdaptiveOffsetFilterMode) { if (!H265SampleAdaptiveOffsetFilterMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sampleAdaptiveOffsetFilterMode" for "%s". The value "%s" is not a valid "H265SampleAdaptiveOffsetFilterMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sampleAdaptiveOffsetFilterMode" for "%s". The value "%s" is not a valid "H265SampleAdaptiveOffsetFilterMode".', __CLASS__, $v)); } $payload['sampleAdaptiveOffsetFilterMode'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!H265ScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "H265ScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "H265ScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->sceneChangeDetect) { if (!H265SceneChangeDetect::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "H265SceneChangeDetect".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "H265SceneChangeDetect".', __CLASS__, $v)); } $payload['sceneChangeDetect'] = $v; } @@ -1072,49 +1072,49 @@ public function requestBody(): array } if (null !== $v = $this->slowPal) { if (!H265SlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "H265SlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "H265SlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } if (null !== $v = $this->spatialAdaptiveQuantization) { if (!H265SpatialAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265SpatialAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265SpatialAdaptiveQuantization".', __CLASS__, $v)); } $payload['spatialAdaptiveQuantization'] = $v; } if (null !== $v = $this->telecine) { if (!H265Telecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "H265Telecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "H265Telecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } if (null !== $v = $this->temporalAdaptiveQuantization) { if (!H265TemporalAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265TemporalAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "H265TemporalAdaptiveQuantization".', __CLASS__, $v)); } $payload['temporalAdaptiveQuantization'] = $v; } if (null !== $v = $this->temporalIds) { if (!H265TemporalIds::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "temporalIds" for "%s". The value "%s" is not a valid "H265TemporalIds".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "temporalIds" for "%s". The value "%s" is not a valid "H265TemporalIds".', __CLASS__, $v)); } $payload['temporalIds'] = $v; } if (null !== $v = $this->tiles) { if (!H265Tiles::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "tiles" for "%s". The value "%s" is not a valid "H265Tiles".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "tiles" for "%s". The value "%s" is not a valid "H265Tiles".', __CLASS__, $v)); } $payload['tiles'] = $v; } if (null !== $v = $this->unregisteredSeiTimecode) { if (!H265UnregisteredSeiTimecode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "unregisteredSeiTimecode" for "%s". The value "%s" is not a valid "H265UnregisteredSeiTimecode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "unregisteredSeiTimecode" for "%s". The value "%s" is not a valid "H265UnregisteredSeiTimecode".', __CLASS__, $v)); } $payload['unregisteredSeiTimecode'] = $v; } if (null !== $v = $this->writeMp4PackagingType) { if (!H265WriteMp4PackagingType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "writeMp4PackagingType" for "%s". The value "%s" is not a valid "H265WriteMp4PackagingType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "writeMp4PackagingType" for "%s". The value "%s" is not a valid "H265WriteMp4PackagingType".', __CLASS__, $v)); } $payload['writeMp4PackagingType'] = $v; } diff --git a/src/ValueObject/HlsCaptionLanguageMapping.php b/src/ValueObject/HlsCaptionLanguageMapping.php index 21e58c8..084c016 100644 --- a/src/ValueObject/HlsCaptionLanguageMapping.php +++ b/src/ValueObject/HlsCaptionLanguageMapping.php @@ -105,7 +105,7 @@ public function requestBody(): array } if (null !== $v = $this->languageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "languageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['languageCode'] = $v; } diff --git a/src/ValueObject/HlsEncryptionSettings.php b/src/ValueObject/HlsEncryptionSettings.php index 7d1c676..f72d8f9 100644 --- a/src/ValueObject/HlsEncryptionSettings.php +++ b/src/ValueObject/HlsEncryptionSettings.php @@ -164,19 +164,19 @@ public function requestBody(): array } if (null !== $v = $this->encryptionMethod) { if (!HlsEncryptionType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "encryptionMethod" for "%s". The value "%s" is not a valid "HlsEncryptionType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "encryptionMethod" for "%s". The value "%s" is not a valid "HlsEncryptionType".', __CLASS__, $v)); } $payload['encryptionMethod'] = $v; } if (null !== $v = $this->initializationVectorInManifest) { if (!HlsInitializationVectorInManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "initializationVectorInManifest" for "%s". The value "%s" is not a valid "HlsInitializationVectorInManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "initializationVectorInManifest" for "%s". The value "%s" is not a valid "HlsInitializationVectorInManifest".', __CLASS__, $v)); } $payload['initializationVectorInManifest'] = $v; } if (null !== $v = $this->offlineEncrypted) { if (!HlsOfflineEncrypted::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "offlineEncrypted" for "%s". The value "%s" is not a valid "HlsOfflineEncrypted".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "offlineEncrypted" for "%s". The value "%s" is not a valid "HlsOfflineEncrypted".', __CLASS__, $v)); } $payload['offlineEncrypted'] = $v; } @@ -188,7 +188,7 @@ public function requestBody(): array } if (null !== $v = $this->type) { if (!HlsKeyProviderType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "HlsKeyProviderType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "HlsKeyProviderType".', __CLASS__, $v)); } $payload['type'] = $v; } diff --git a/src/ValueObject/HlsGroupSettings.php b/src/ValueObject/HlsGroupSettings.php index 9229839..9bfae29 100644 --- a/src/ValueObject/HlsGroupSettings.php +++ b/src/ValueObject/HlsGroupSettings.php @@ -650,7 +650,7 @@ public function requestBody(): array foreach ($v as $listValue) { ++$index; if (!HlsAdMarkers::exists($listValue)) { - throw new InvalidArgument(sprintf('Invalid parameter "adMarkers" for "%s". The value "%s" is not a valid "HlsAdMarkers".', __CLASS__, $listValue)); + throw new InvalidArgument(\sprintf('Invalid parameter "adMarkers" for "%s". The value "%s" is not a valid "HlsAdMarkers".', __CLASS__, $listValue)); } $payload['adMarkers'][$index] = $listValue; } @@ -665,7 +665,7 @@ public function requestBody(): array } if (null !== $v = $this->audioOnlyHeader) { if (!HlsAudioOnlyHeader::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioOnlyHeader" for "%s". The value "%s" is not a valid "HlsAudioOnlyHeader".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioOnlyHeader" for "%s". The value "%s" is not a valid "HlsAudioOnlyHeader".', __CLASS__, $v)); } $payload['audioOnlyHeader'] = $v; } @@ -682,25 +682,25 @@ public function requestBody(): array } if (null !== $v = $this->captionLanguageSetting) { if (!HlsCaptionLanguageSetting::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "captionLanguageSetting" for "%s". The value "%s" is not a valid "HlsCaptionLanguageSetting".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "captionLanguageSetting" for "%s". The value "%s" is not a valid "HlsCaptionLanguageSetting".', __CLASS__, $v)); } $payload['captionLanguageSetting'] = $v; } if (null !== $v = $this->captionSegmentLengthControl) { if (!HlsCaptionSegmentLengthControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "captionSegmentLengthControl" for "%s". The value "%s" is not a valid "HlsCaptionSegmentLengthControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "captionSegmentLengthControl" for "%s". The value "%s" is not a valid "HlsCaptionSegmentLengthControl".', __CLASS__, $v)); } $payload['captionSegmentLengthControl'] = $v; } if (null !== $v = $this->clientCache) { if (!HlsClientCache::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "clientCache" for "%s". The value "%s" is not a valid "HlsClientCache".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "clientCache" for "%s". The value "%s" is not a valid "HlsClientCache".', __CLASS__, $v)); } $payload['clientCache'] = $v; } if (null !== $v = $this->codecSpecification) { if (!HlsCodecSpecification::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecSpecification" for "%s". The value "%s" is not a valid "HlsCodecSpecification".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecSpecification" for "%s". The value "%s" is not a valid "HlsCodecSpecification".', __CLASS__, $v)); } $payload['codecSpecification'] = $v; } @@ -712,7 +712,7 @@ public function requestBody(): array } if (null !== $v = $this->directoryStructure) { if (!HlsDirectoryStructure::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "directoryStructure" for "%s". The value "%s" is not a valid "HlsDirectoryStructure".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "directoryStructure" for "%s". The value "%s" is not a valid "HlsDirectoryStructure".', __CLASS__, $v)); } $payload['directoryStructure'] = $v; } @@ -721,7 +721,7 @@ public function requestBody(): array } if (null !== $v = $this->imageBasedTrickPlay) { if (!HlsImageBasedTrickPlay::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "HlsImageBasedTrickPlay".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "imageBasedTrickPlay" for "%s". The value "%s" is not a valid "HlsImageBasedTrickPlay".', __CLASS__, $v)); } $payload['imageBasedTrickPlay'] = $v; } @@ -730,13 +730,13 @@ public function requestBody(): array } if (null !== $v = $this->manifestCompression) { if (!HlsManifestCompression::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestCompression" for "%s". The value "%s" is not a valid "HlsManifestCompression".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestCompression" for "%s". The value "%s" is not a valid "HlsManifestCompression".', __CLASS__, $v)); } $payload['manifestCompression'] = $v; } if (null !== $v = $this->manifestDurationFormat) { if (!HlsManifestDurationFormat::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestDurationFormat" for "%s". The value "%s" is not a valid "HlsManifestDurationFormat".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestDurationFormat" for "%s". The value "%s" is not a valid "HlsManifestDurationFormat".', __CLASS__, $v)); } $payload['manifestDurationFormat'] = $v; } @@ -748,13 +748,13 @@ public function requestBody(): array } if (null !== $v = $this->outputSelection) { if (!HlsOutputSelection::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "outputSelection" for "%s". The value "%s" is not a valid "HlsOutputSelection".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "outputSelection" for "%s". The value "%s" is not a valid "HlsOutputSelection".', __CLASS__, $v)); } $payload['outputSelection'] = $v; } if (null !== $v = $this->programDateTime) { if (!HlsProgramDateTime::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "programDateTime" for "%s". The value "%s" is not a valid "HlsProgramDateTime".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "programDateTime" for "%s". The value "%s" is not a valid "HlsProgramDateTime".', __CLASS__, $v)); } $payload['programDateTime'] = $v; } @@ -763,13 +763,13 @@ public function requestBody(): array } if (null !== $v = $this->progressiveWriteHlsManifest) { if (!HlsProgressiveWriteHlsManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "progressiveWriteHlsManifest" for "%s". The value "%s" is not a valid "HlsProgressiveWriteHlsManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "progressiveWriteHlsManifest" for "%s". The value "%s" is not a valid "HlsProgressiveWriteHlsManifest".', __CLASS__, $v)); } $payload['progressiveWriteHlsManifest'] = $v; } if (null !== $v = $this->segmentControl) { if (!HlsSegmentControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "HlsSegmentControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentControl" for "%s". The value "%s" is not a valid "HlsSegmentControl".', __CLASS__, $v)); } $payload['segmentControl'] = $v; } @@ -778,7 +778,7 @@ public function requestBody(): array } if (null !== $v = $this->segmentLengthControl) { if (!HlsSegmentLengthControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "HlsSegmentLengthControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentLengthControl" for "%s". The value "%s" is not a valid "HlsSegmentLengthControl".', __CLASS__, $v)); } $payload['segmentLengthControl'] = $v; } @@ -787,19 +787,19 @@ public function requestBody(): array } if (null !== $v = $this->streamInfResolution) { if (!HlsStreamInfResolution::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "streamInfResolution" for "%s". The value "%s" is not a valid "HlsStreamInfResolution".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "streamInfResolution" for "%s". The value "%s" is not a valid "HlsStreamInfResolution".', __CLASS__, $v)); } $payload['streamInfResolution'] = $v; } if (null !== $v = $this->targetDurationCompatibilityMode) { if (!HlsTargetDurationCompatibilityMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "targetDurationCompatibilityMode" for "%s". The value "%s" is not a valid "HlsTargetDurationCompatibilityMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "targetDurationCompatibilityMode" for "%s". The value "%s" is not a valid "HlsTargetDurationCompatibilityMode".', __CLASS__, $v)); } $payload['targetDurationCompatibilityMode'] = $v; } if (null !== $v = $this->timedMetadataId3Frame) { if (!HlsTimedMetadataId3Frame::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadataId3Frame" for "%s". The value "%s" is not a valid "HlsTimedMetadataId3Frame".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadataId3Frame" for "%s". The value "%s" is not a valid "HlsTimedMetadataId3Frame".', __CLASS__, $v)); } $payload['timedMetadataId3Frame'] = $v; } diff --git a/src/ValueObject/HlsImageBasedTrickPlaySettings.php b/src/ValueObject/HlsImageBasedTrickPlaySettings.php index 747683e..127a199 100644 --- a/src/ValueObject/HlsImageBasedTrickPlaySettings.php +++ b/src/ValueObject/HlsImageBasedTrickPlaySettings.php @@ -135,7 +135,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->intervalCadence) { if (!HlsIntervalCadence::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "HlsIntervalCadence".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "intervalCadence" for "%s". The value "%s" is not a valid "HlsIntervalCadence".', __CLASS__, $v)); } $payload['intervalCadence'] = $v; } diff --git a/src/ValueObject/HlsRenditionGroupSettings.php b/src/ValueObject/HlsRenditionGroupSettings.php index 4fac9f0..7bb6bde 100644 --- a/src/ValueObject/HlsRenditionGroupSettings.php +++ b/src/ValueObject/HlsRenditionGroupSettings.php @@ -90,7 +90,7 @@ public function requestBody(): array } if (null !== $v = $this->renditionLanguageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "renditionLanguageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "renditionLanguageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['renditionLanguageCode'] = $v; } diff --git a/src/ValueObject/HlsSettings.php b/src/ValueObject/HlsSettings.php index aae3a99..dca47c5 100644 --- a/src/ValueObject/HlsSettings.php +++ b/src/ValueObject/HlsSettings.php @@ -175,7 +175,7 @@ public function requestBody(): array } if (null !== $v = $this->audioOnlyContainer) { if (!HlsAudioOnlyContainer::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioOnlyContainer" for "%s". The value "%s" is not a valid "HlsAudioOnlyContainer".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioOnlyContainer" for "%s". The value "%s" is not a valid "HlsAudioOnlyContainer".', __CLASS__, $v)); } $payload['audioOnlyContainer'] = $v; } @@ -184,19 +184,19 @@ public function requestBody(): array } if (null !== $v = $this->audioTrackType) { if (!HlsAudioTrackType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioTrackType" for "%s". The value "%s" is not a valid "HlsAudioTrackType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioTrackType" for "%s". The value "%s" is not a valid "HlsAudioTrackType".', __CLASS__, $v)); } $payload['audioTrackType'] = $v; } if (null !== $v = $this->descriptiveVideoServiceFlag) { if (!HlsDescriptiveVideoServiceFlag::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "descriptiveVideoServiceFlag" for "%s". The value "%s" is not a valid "HlsDescriptiveVideoServiceFlag".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "descriptiveVideoServiceFlag" for "%s". The value "%s" is not a valid "HlsDescriptiveVideoServiceFlag".', __CLASS__, $v)); } $payload['descriptiveVideoServiceFlag'] = $v; } if (null !== $v = $this->iframeOnlyManifest) { if (!HlsIFrameOnlyManifest::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "iFrameOnlyManifest" for "%s". The value "%s" is not a valid "HlsIFrameOnlyManifest".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "iFrameOnlyManifest" for "%s". The value "%s" is not a valid "HlsIFrameOnlyManifest".', __CLASS__, $v)); } $payload['iFrameOnlyManifest'] = $v; } diff --git a/src/ValueObject/ImscDestinationSettings.php b/src/ValueObject/ImscDestinationSettings.php index 5791293..91beec2 100644 --- a/src/ValueObject/ImscDestinationSettings.php +++ b/src/ValueObject/ImscDestinationSettings.php @@ -84,13 +84,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->accessibility) { if (!ImscAccessibilitySubs::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "accessibility" for "%s". The value "%s" is not a valid "ImscAccessibilitySubs".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "accessibility" for "%s". The value "%s" is not a valid "ImscAccessibilitySubs".', __CLASS__, $v)); } $payload['accessibility'] = $v; } if (null !== $v = $this->stylePassthrough) { if (!ImscStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "ImscStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "ImscStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } diff --git a/src/ValueObject/Input.php b/src/ValueObject/Input.php index bfa4a36..f22d154 100644 --- a/src/ValueObject/Input.php +++ b/src/ValueObject/Input.php @@ -520,7 +520,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->advancedInputFilter) { if (!AdvancedInputFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "advancedInputFilter" for "%s". The value "%s" is not a valid "AdvancedInputFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "advancedInputFilter" for "%s". The value "%s" is not a valid "AdvancedInputFilter".', __CLASS__, $v)); } $payload['advancedInputFilter'] = $v; } @@ -562,7 +562,7 @@ public function requestBody(): array } if (null !== $v = $this->deblockFilter) { if (!InputDeblockFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "deblockFilter" for "%s". The value "%s" is not a valid "InputDeblockFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "deblockFilter" for "%s". The value "%s" is not a valid "InputDeblockFilter".', __CLASS__, $v)); } $payload['deblockFilter'] = $v; } @@ -571,7 +571,7 @@ public function requestBody(): array } if (null !== $v = $this->denoiseFilter) { if (!InputDenoiseFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "denoiseFilter" for "%s". The value "%s" is not a valid "InputDenoiseFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "denoiseFilter" for "%s". The value "%s" is not a valid "InputDenoiseFilter".', __CLASS__, $v)); } $payload['denoiseFilter'] = $v; } @@ -583,7 +583,7 @@ public function requestBody(): array } if (null !== $v = $this->filterEnable) { if (!InputFilterEnable::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "filterEnable" for "%s". The value "%s" is not a valid "InputFilterEnable".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "filterEnable" for "%s". The value "%s" is not a valid "InputFilterEnable".', __CLASS__, $v)); } $payload['filterEnable'] = $v; } @@ -603,7 +603,7 @@ public function requestBody(): array } if (null !== $v = $this->inputScanType) { if (!InputScanType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "inputScanType" for "%s". The value "%s" is not a valid "InputScanType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "inputScanType" for "%s". The value "%s" is not a valid "InputScanType".', __CLASS__, $v)); } $payload['inputScanType'] = $v; } @@ -615,7 +615,7 @@ public function requestBody(): array } if (null !== $v = $this->psiControl) { if (!InputPsiControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "psiControl" for "%s". The value "%s" is not a valid "InputPsiControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "psiControl" for "%s". The value "%s" is not a valid "InputPsiControl".', __CLASS__, $v)); } $payload['psiControl'] = $v; } @@ -629,7 +629,7 @@ public function requestBody(): array } if (null !== $v = $this->timecodeSource) { if (!InputTimecodeSource::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timecodeSource" for "%s". The value "%s" is not a valid "InputTimecodeSource".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timecodeSource" for "%s". The value "%s" is not a valid "InputTimecodeSource".', __CLASS__, $v)); } $payload['timecodeSource'] = $v; } diff --git a/src/ValueObject/InputDecryptionSettings.php b/src/ValueObject/InputDecryptionSettings.php index dda5426..a3dcb6a 100644 --- a/src/ValueObject/InputDecryptionSettings.php +++ b/src/ValueObject/InputDecryptionSettings.php @@ -105,7 +105,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->decryptionMode) { if (!DecryptionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "decryptionMode" for "%s". The value "%s" is not a valid "DecryptionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "decryptionMode" for "%s". The value "%s" is not a valid "DecryptionMode".', __CLASS__, $v)); } $payload['decryptionMode'] = $v; } diff --git a/src/ValueObject/M2tsSettings.php b/src/ValueObject/M2tsSettings.php index eb45f26..d58e5cc 100644 --- a/src/ValueObject/M2tsSettings.php +++ b/src/ValueObject/M2tsSettings.php @@ -801,13 +801,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioBufferModel) { if (!M2tsAudioBufferModel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioBufferModel" for "%s". The value "%s" is not a valid "M2tsAudioBufferModel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioBufferModel" for "%s". The value "%s" is not a valid "M2tsAudioBufferModel".', __CLASS__, $v)); } $payload['audioBufferModel'] = $v; } if (null !== $v = $this->audioDuration) { if (!M2tsAudioDuration::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "M2tsAudioDuration".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "M2tsAudioDuration".', __CLASS__, $v)); } $payload['audioDuration'] = $v; } @@ -827,13 +827,13 @@ public function requestBody(): array } if (null !== $v = $this->bufferModel) { if (!M2tsBufferModel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bufferModel" for "%s". The value "%s" is not a valid "M2tsBufferModel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bufferModel" for "%s". The value "%s" is not a valid "M2tsBufferModel".', __CLASS__, $v)); } $payload['bufferModel'] = $v; } if (null !== $v = $this->dataPtsControl) { if (!M2tsDataPtsControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dataPTSControl" for "%s". The value "%s" is not a valid "M2tsDataPtsControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dataPTSControl" for "%s". The value "%s" is not a valid "M2tsDataPtsControl".', __CLASS__, $v)); } $payload['dataPTSControl'] = $v; } @@ -859,25 +859,25 @@ public function requestBody(): array } if (null !== $v = $this->ebpAudioInterval) { if (!M2tsEbpAudioInterval::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ebpAudioInterval" for "%s". The value "%s" is not a valid "M2tsEbpAudioInterval".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ebpAudioInterval" for "%s". The value "%s" is not a valid "M2tsEbpAudioInterval".', __CLASS__, $v)); } $payload['ebpAudioInterval'] = $v; } if (null !== $v = $this->ebpPlacement) { if (!M2tsEbpPlacement::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ebpPlacement" for "%s". The value "%s" is not a valid "M2tsEbpPlacement".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ebpPlacement" for "%s". The value "%s" is not a valid "M2tsEbpPlacement".', __CLASS__, $v)); } $payload['ebpPlacement'] = $v; } if (null !== $v = $this->esRateInPes) { if (!M2tsEsRateInPes::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "esRateInPes" for "%s". The value "%s" is not a valid "M2tsEsRateInPes".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "esRateInPes" for "%s". The value "%s" is not a valid "M2tsEsRateInPes".', __CLASS__, $v)); } $payload['esRateInPes'] = $v; } if (null !== $v = $this->forceTsVideoEbpOrder) { if (!M2tsForceTsVideoEbpOrder::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "forceTsVideoEbpOrder" for "%s". The value "%s" is not a valid "M2tsForceTsVideoEbpOrder".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "forceTsVideoEbpOrder" for "%s". The value "%s" is not a valid "M2tsForceTsVideoEbpOrder".', __CLASS__, $v)); } $payload['forceTsVideoEbpOrder'] = $v; } @@ -886,7 +886,7 @@ public function requestBody(): array } if (null !== $v = $this->klvMetadata) { if (!M2tsKlvMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "M2tsKlvMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "M2tsKlvMetadata".', __CLASS__, $v)); } $payload['klvMetadata'] = $v; } @@ -898,7 +898,7 @@ public function requestBody(): array } if (null !== $v = $this->nielsenId3) { if (!M2tsNielsenId3::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "nielsenId3" for "%s". The value "%s" is not a valid "M2tsNielsenId3".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "nielsenId3" for "%s". The value "%s" is not a valid "M2tsNielsenId3".', __CLASS__, $v)); } $payload['nielsenId3'] = $v; } @@ -910,7 +910,7 @@ public function requestBody(): array } if (null !== $v = $this->pcrControl) { if (!M2tsPcrControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "pcrControl" for "%s". The value "%s" is not a valid "M2tsPcrControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "pcrControl" for "%s". The value "%s" is not a valid "M2tsPcrControl".', __CLASS__, $v)); } $payload['pcrControl'] = $v; } @@ -925,7 +925,7 @@ public function requestBody(): array } if (null !== $v = $this->preventBufferUnderflow) { if (!M2tsPreventBufferUnderflow::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "preventBufferUnderflow" for "%s". The value "%s" is not a valid "M2tsPreventBufferUnderflow".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "preventBufferUnderflow" for "%s". The value "%s" is not a valid "M2tsPreventBufferUnderflow".', __CLASS__, $v)); } $payload['preventBufferUnderflow'] = $v; } @@ -940,13 +940,13 @@ public function requestBody(): array } if (null !== $v = $this->ptsOffsetMode) { if (!TsPtsOffset::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ptsOffsetMode" for "%s". The value "%s" is not a valid "TsPtsOffset".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ptsOffsetMode" for "%s". The value "%s" is not a valid "TsPtsOffset".', __CLASS__, $v)); } $payload['ptsOffsetMode'] = $v; } if (null !== $v = $this->rateMode) { if (!M2tsRateMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateMode" for "%s". The value "%s" is not a valid "M2tsRateMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateMode" for "%s". The value "%s" is not a valid "M2tsRateMode".', __CLASS__, $v)); } $payload['rateMode'] = $v; } @@ -958,19 +958,19 @@ public function requestBody(): array } if (null !== $v = $this->scte35Source) { if (!M2tsScte35Source::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "M2tsScte35Source".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "M2tsScte35Source".', __CLASS__, $v)); } $payload['scte35Source'] = $v; } if (null !== $v = $this->segmentationMarkers) { if (!M2tsSegmentationMarkers::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentationMarkers" for "%s". The value "%s" is not a valid "M2tsSegmentationMarkers".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentationMarkers" for "%s". The value "%s" is not a valid "M2tsSegmentationMarkers".', __CLASS__, $v)); } $payload['segmentationMarkers'] = $v; } if (null !== $v = $this->segmentationStyle) { if (!M2tsSegmentationStyle::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "segmentationStyle" for "%s". The value "%s" is not a valid "M2tsSegmentationStyle".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "segmentationStyle" for "%s". The value "%s" is not a valid "M2tsSegmentationStyle".', __CLASS__, $v)); } $payload['segmentationStyle'] = $v; } diff --git a/src/ValueObject/M3u8Settings.php b/src/ValueObject/M3u8Settings.php index 9316197..16f7824 100644 --- a/src/ValueObject/M3u8Settings.php +++ b/src/ValueObject/M3u8Settings.php @@ -407,7 +407,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioDuration) { if (!M3u8AudioDuration::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "M3u8AudioDuration".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "M3u8AudioDuration".', __CLASS__, $v)); } $payload['audioDuration'] = $v; } @@ -424,7 +424,7 @@ public function requestBody(): array } if (null !== $v = $this->dataPtsControl) { if (!M3u8DataPtsControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dataPTSControl" for "%s". The value "%s" is not a valid "M3u8DataPtsControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dataPTSControl" for "%s". The value "%s" is not a valid "M3u8DataPtsControl".', __CLASS__, $v)); } $payload['dataPTSControl'] = $v; } @@ -433,7 +433,7 @@ public function requestBody(): array } if (null !== $v = $this->nielsenId3) { if (!M3u8NielsenId3::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "nielsenId3" for "%s". The value "%s" is not a valid "M3u8NielsenId3".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "nielsenId3" for "%s". The value "%s" is not a valid "M3u8NielsenId3".', __CLASS__, $v)); } $payload['nielsenId3'] = $v; } @@ -442,7 +442,7 @@ public function requestBody(): array } if (null !== $v = $this->pcrControl) { if (!M3u8PcrControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "pcrControl" for "%s". The value "%s" is not a valid "M3u8PcrControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "pcrControl" for "%s". The value "%s" is not a valid "M3u8PcrControl".', __CLASS__, $v)); } $payload['pcrControl'] = $v; } @@ -466,7 +466,7 @@ public function requestBody(): array } if (null !== $v = $this->ptsOffsetMode) { if (!TsPtsOffset::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "ptsOffsetMode" for "%s". The value "%s" is not a valid "TsPtsOffset".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "ptsOffsetMode" for "%s". The value "%s" is not a valid "TsPtsOffset".', __CLASS__, $v)); } $payload['ptsOffsetMode'] = $v; } @@ -475,13 +475,13 @@ public function requestBody(): array } if (null !== $v = $this->scte35Source) { if (!M3u8Scte35Source::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "M3u8Scte35Source".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "M3u8Scte35Source".', __CLASS__, $v)); } $payload['scte35Source'] = $v; } if (null !== $v = $this->timedMetadata) { if (!TimedMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "TimedMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "TimedMetadata".', __CLASS__, $v)); } $payload['timedMetadata'] = $v; } diff --git a/src/ValueObject/MotionImageInserter.php b/src/ValueObject/MotionImageInserter.php index b2484ee..4fd57b4 100644 --- a/src/ValueObject/MotionImageInserter.php +++ b/src/ValueObject/MotionImageInserter.php @@ -159,7 +159,7 @@ public function requestBody(): array } if (null !== $v = $this->insertionMode) { if (!MotionImageInsertionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "insertionMode" for "%s". The value "%s" is not a valid "MotionImageInsertionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "insertionMode" for "%s". The value "%s" is not a valid "MotionImageInsertionMode".', __CLASS__, $v)); } $payload['insertionMode'] = $v; } @@ -168,7 +168,7 @@ public function requestBody(): array } if (null !== $v = $this->playback) { if (!MotionImagePlayback::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "playback" for "%s". The value "%s" is not a valid "MotionImagePlayback".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "playback" for "%s". The value "%s" is not a valid "MotionImagePlayback".', __CLASS__, $v)); } $payload['playback'] = $v; } diff --git a/src/ValueObject/MovSettings.php b/src/ValueObject/MovSettings.php index b38f094..355c063 100644 --- a/src/ValueObject/MovSettings.php +++ b/src/ValueObject/MovSettings.php @@ -135,31 +135,31 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->clapAtom) { if (!MovClapAtom::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "clapAtom" for "%s". The value "%s" is not a valid "MovClapAtom".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "clapAtom" for "%s". The value "%s" is not a valid "MovClapAtom".', __CLASS__, $v)); } $payload['clapAtom'] = $v; } if (null !== $v = $this->cslgAtom) { if (!MovCslgAtom::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "cslgAtom" for "%s". The value "%s" is not a valid "MovCslgAtom".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "cslgAtom" for "%s". The value "%s" is not a valid "MovCslgAtom".', __CLASS__, $v)); } $payload['cslgAtom'] = $v; } if (null !== $v = $this->mpeg2FourccControl) { if (!MovMpeg2FourCCControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "mpeg2FourCCControl" for "%s". The value "%s" is not a valid "MovMpeg2FourCCControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "mpeg2FourCCControl" for "%s". The value "%s" is not a valid "MovMpeg2FourCCControl".', __CLASS__, $v)); } $payload['mpeg2FourCCControl'] = $v; } if (null !== $v = $this->paddingControl) { if (!MovPaddingControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "paddingControl" for "%s". The value "%s" is not a valid "MovPaddingControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "paddingControl" for "%s". The value "%s" is not a valid "MovPaddingControl".', __CLASS__, $v)); } $payload['paddingControl'] = $v; } if (null !== $v = $this->reference) { if (!MovReference::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "reference" for "%s". The value "%s" is not a valid "MovReference".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "reference" for "%s". The value "%s" is not a valid "MovReference".', __CLASS__, $v)); } $payload['reference'] = $v; } diff --git a/src/ValueObject/Mp3Settings.php b/src/ValueObject/Mp3Settings.php index 230aecf..fb8408e 100644 --- a/src/ValueObject/Mp3Settings.php +++ b/src/ValueObject/Mp3Settings.php @@ -121,7 +121,7 @@ public function requestBody(): array } if (null !== $v = $this->rateControlMode) { if (!Mp3RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Mp3RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Mp3RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } diff --git a/src/ValueObject/Mp4Settings.php b/src/ValueObject/Mp4Settings.php index 4032022..a09682b 100644 --- a/src/ValueObject/Mp4Settings.php +++ b/src/ValueObject/Mp4Settings.php @@ -156,13 +156,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->audioDuration) { if (!CmfcAudioDuration::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "CmfcAudioDuration".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "CmfcAudioDuration".', __CLASS__, $v)); } $payload['audioDuration'] = $v; } if (null !== $v = $this->cslgAtom) { if (!Mp4CslgAtom::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "cslgAtom" for "%s". The value "%s" is not a valid "Mp4CslgAtom".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "cslgAtom" for "%s". The value "%s" is not a valid "Mp4CslgAtom".', __CLASS__, $v)); } $payload['cslgAtom'] = $v; } @@ -171,13 +171,13 @@ public function requestBody(): array } if (null !== $v = $this->freeSpaceBox) { if (!Mp4FreeSpaceBox::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "freeSpaceBox" for "%s". The value "%s" is not a valid "Mp4FreeSpaceBox".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "freeSpaceBox" for "%s". The value "%s" is not a valid "Mp4FreeSpaceBox".', __CLASS__, $v)); } $payload['freeSpaceBox'] = $v; } if (null !== $v = $this->moovPlacement) { if (!Mp4MoovPlacement::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "moovPlacement" for "%s". The value "%s" is not a valid "Mp4MoovPlacement".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "moovPlacement" for "%s". The value "%s" is not a valid "Mp4MoovPlacement".', __CLASS__, $v)); } $payload['moovPlacement'] = $v; } diff --git a/src/ValueObject/MpdSettings.php b/src/ValueObject/MpdSettings.php index 1257c56..931446d 100644 --- a/src/ValueObject/MpdSettings.php +++ b/src/ValueObject/MpdSettings.php @@ -269,55 +269,55 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->accessibilityCaptionHints) { if (!MpdAccessibilityCaptionHints::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "accessibilityCaptionHints" for "%s". The value "%s" is not a valid "MpdAccessibilityCaptionHints".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "accessibilityCaptionHints" for "%s". The value "%s" is not a valid "MpdAccessibilityCaptionHints".', __CLASS__, $v)); } $payload['accessibilityCaptionHints'] = $v; } if (null !== $v = $this->audioDuration) { if (!MpdAudioDuration::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "MpdAudioDuration".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDuration" for "%s". The value "%s" is not a valid "MpdAudioDuration".', __CLASS__, $v)); } $payload['audioDuration'] = $v; } if (null !== $v = $this->captionContainerType) { if (!MpdCaptionContainerType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "captionContainerType" for "%s". The value "%s" is not a valid "MpdCaptionContainerType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "captionContainerType" for "%s". The value "%s" is not a valid "MpdCaptionContainerType".', __CLASS__, $v)); } $payload['captionContainerType'] = $v; } if (null !== $v = $this->klvMetadata) { if (!MpdKlvMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "MpdKlvMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "klvMetadata" for "%s". The value "%s" is not a valid "MpdKlvMetadata".', __CLASS__, $v)); } $payload['klvMetadata'] = $v; } if (null !== $v = $this->manifestMetadataSignaling) { if (!MpdManifestMetadataSignaling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestMetadataSignaling" for "%s". The value "%s" is not a valid "MpdManifestMetadataSignaling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestMetadataSignaling" for "%s". The value "%s" is not a valid "MpdManifestMetadataSignaling".', __CLASS__, $v)); } $payload['manifestMetadataSignaling'] = $v; } if (null !== $v = $this->scte35Esam) { if (!MpdScte35Esam::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Esam" for "%s". The value "%s" is not a valid "MpdScte35Esam".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Esam" for "%s". The value "%s" is not a valid "MpdScte35Esam".', __CLASS__, $v)); } $payload['scte35Esam'] = $v; } if (null !== $v = $this->scte35Source) { if (!MpdScte35Source::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "MpdScte35Source".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scte35Source" for "%s". The value "%s" is not a valid "MpdScte35Source".', __CLASS__, $v)); } $payload['scte35Source'] = $v; } if (null !== $v = $this->timedMetadata) { if (!MpdTimedMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "MpdTimedMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadata" for "%s". The value "%s" is not a valid "MpdTimedMetadata".', __CLASS__, $v)); } $payload['timedMetadata'] = $v; } if (null !== $v = $this->timedMetadataBoxVersion) { if (!MpdTimedMetadataBoxVersion::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timedMetadataBoxVersion" for "%s". The value "%s" is not a valid "MpdTimedMetadataBoxVersion".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timedMetadataBoxVersion" for "%s". The value "%s" is not a valid "MpdTimedMetadataBoxVersion".', __CLASS__, $v)); } $payload['timedMetadataBoxVersion'] = $v; } diff --git a/src/ValueObject/Mpeg2Settings.php b/src/ValueObject/Mpeg2Settings.php index b2fd851..6277b7a 100644 --- a/src/ValueObject/Mpeg2Settings.php +++ b/src/ValueObject/Mpeg2Settings.php @@ -696,7 +696,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->adaptiveQuantization) { if (!Mpeg2AdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2AdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2AdaptiveQuantization".', __CLASS__, $v)); } $payload['adaptiveQuantization'] = $v; } @@ -705,31 +705,31 @@ public function requestBody(): array } if (null !== $v = $this->codecLevel) { if (!Mpeg2CodecLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "Mpeg2CodecLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecLevel" for "%s". The value "%s" is not a valid "Mpeg2CodecLevel".', __CLASS__, $v)); } $payload['codecLevel'] = $v; } if (null !== $v = $this->codecProfile) { if (!Mpeg2CodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "Mpeg2CodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "Mpeg2CodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->dynamicSubGop) { if (!Mpeg2DynamicSubGop::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "Mpeg2DynamicSubGop".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dynamicSubGop" for "%s". The value "%s" is not a valid "Mpeg2DynamicSubGop".', __CLASS__, $v)); } $payload['dynamicSubGop'] = $v; } if (null !== $v = $this->framerateControl) { if (!Mpeg2FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Mpeg2FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Mpeg2FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!Mpeg2FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Mpeg2FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Mpeg2FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -747,7 +747,7 @@ public function requestBody(): array } if (null !== $v = $this->gopSizeUnits) { if (!Mpeg2GopSizeUnits::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "Mpeg2GopSizeUnits".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopSizeUnits" for "%s". The value "%s" is not a valid "Mpeg2GopSizeUnits".', __CLASS__, $v)); } $payload['gopSizeUnits'] = $v; } @@ -762,13 +762,13 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!Mpeg2InterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "Mpeg2InterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "Mpeg2InterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->intraDcPrecision) { if (!Mpeg2IntraDcPrecision::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "intraDcPrecision" for "%s". The value "%s" is not a valid "Mpeg2IntraDcPrecision".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "intraDcPrecision" for "%s". The value "%s" is not a valid "Mpeg2IntraDcPrecision".', __CLASS__, $v)); } $payload['intraDcPrecision'] = $v; } @@ -783,7 +783,7 @@ public function requestBody(): array } if (null !== $v = $this->parControl) { if (!Mpeg2ParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Mpeg2ParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Mpeg2ParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -795,31 +795,31 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!Mpeg2QualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Mpeg2QualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Mpeg2QualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } if (null !== $v = $this->rateControlMode) { if (!Mpeg2RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Mpeg2RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Mpeg2RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!Mpeg2ScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "Mpeg2ScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "Mpeg2ScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->sceneChangeDetect) { if (!Mpeg2SceneChangeDetect::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "Mpeg2SceneChangeDetect".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sceneChangeDetect" for "%s". The value "%s" is not a valid "Mpeg2SceneChangeDetect".', __CLASS__, $v)); } $payload['sceneChangeDetect'] = $v; } if (null !== $v = $this->slowPal) { if (!Mpeg2SlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "Mpeg2SlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "Mpeg2SlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } @@ -828,25 +828,25 @@ public function requestBody(): array } if (null !== $v = $this->spatialAdaptiveQuantization) { if (!Mpeg2SpatialAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2SpatialAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2SpatialAdaptiveQuantization".', __CLASS__, $v)); } $payload['spatialAdaptiveQuantization'] = $v; } if (null !== $v = $this->syntax) { if (!Mpeg2Syntax::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "syntax" for "%s". The value "%s" is not a valid "Mpeg2Syntax".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "syntax" for "%s". The value "%s" is not a valid "Mpeg2Syntax".', __CLASS__, $v)); } $payload['syntax'] = $v; } if (null !== $v = $this->telecine) { if (!Mpeg2Telecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "Mpeg2Telecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "Mpeg2Telecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } if (null !== $v = $this->temporalAdaptiveQuantization) { if (!Mpeg2TemporalAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2TemporalAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "Mpeg2TemporalAdaptiveQuantization".', __CLASS__, $v)); } $payload['temporalAdaptiveQuantization'] = $v; } diff --git a/src/ValueObject/MsSmoothGroupSettings.php b/src/ValueObject/MsSmoothGroupSettings.php index dfeb788..ba06722 100644 --- a/src/ValueObject/MsSmoothGroupSettings.php +++ b/src/ValueObject/MsSmoothGroupSettings.php @@ -188,7 +188,7 @@ public function requestBody(): array } if (null !== $v = $this->audioDeduplication) { if (!MsSmoothAudioDeduplication::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "audioDeduplication" for "%s". The value "%s" is not a valid "MsSmoothAudioDeduplication".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "audioDeduplication" for "%s". The value "%s" is not a valid "MsSmoothAudioDeduplication".', __CLASS__, $v)); } $payload['audioDeduplication'] = $v; } @@ -206,13 +206,13 @@ public function requestBody(): array } if (null !== $v = $this->fragmentLengthControl) { if (!MsSmoothFragmentLengthControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fragmentLengthControl" for "%s". The value "%s" is not a valid "MsSmoothFragmentLengthControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fragmentLengthControl" for "%s". The value "%s" is not a valid "MsSmoothFragmentLengthControl".', __CLASS__, $v)); } $payload['fragmentLengthControl'] = $v; } if (null !== $v = $this->manifestEncoding) { if (!MsSmoothManifestEncoding::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "manifestEncoding" for "%s". The value "%s" is not a valid "MsSmoothManifestEncoding".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "manifestEncoding" for "%s". The value "%s" is not a valid "MsSmoothManifestEncoding".', __CLASS__, $v)); } $payload['manifestEncoding'] = $v; } diff --git a/src/ValueObject/MxfSettings.php b/src/ValueObject/MxfSettings.php index 9e5977b..3196053 100644 --- a/src/ValueObject/MxfSettings.php +++ b/src/ValueObject/MxfSettings.php @@ -96,13 +96,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->afdSignaling) { if (!MxfAfdSignaling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "afdSignaling" for "%s". The value "%s" is not a valid "MxfAfdSignaling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "afdSignaling" for "%s". The value "%s" is not a valid "MxfAfdSignaling".', __CLASS__, $v)); } $payload['afdSignaling'] = $v; } if (null !== $v = $this->profile) { if (!MxfProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "MxfProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "MxfProfile".', __CLASS__, $v)); } $payload['profile'] = $v; } diff --git a/src/ValueObject/MxfXavcProfileSettings.php b/src/ValueObject/MxfXavcProfileSettings.php index 1aca72c..210b66a 100644 --- a/src/ValueObject/MxfXavcProfileSettings.php +++ b/src/ValueObject/MxfXavcProfileSettings.php @@ -75,7 +75,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->durationMode) { if (!MxfXavcDurationMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "durationMode" for "%s". The value "%s" is not a valid "MxfXavcDurationMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "durationMode" for "%s". The value "%s" is not a valid "MxfXavcDurationMode".', __CLASS__, $v)); } $payload['durationMode'] = $v; } diff --git a/src/ValueObject/NexGuardFileMarkerSettings.php b/src/ValueObject/NexGuardFileMarkerSettings.php index 69af0f2..1257fc6 100644 --- a/src/ValueObject/NexGuardFileMarkerSettings.php +++ b/src/ValueObject/NexGuardFileMarkerSettings.php @@ -117,7 +117,7 @@ public function requestBody(): array } if (null !== $v = $this->strength) { if (!WatermarkingStrength::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "strength" for "%s". The value "%s" is not a valid "WatermarkingStrength".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "strength" for "%s". The value "%s" is not a valid "WatermarkingStrength".', __CLASS__, $v)); } $payload['strength'] = $v; } diff --git a/src/ValueObject/NielsenNonLinearWatermarkSettings.php b/src/ValueObject/NielsenNonLinearWatermarkSettings.php index 04b4050..1f06560 100644 --- a/src/ValueObject/NielsenNonLinearWatermarkSettings.php +++ b/src/ValueObject/NielsenNonLinearWatermarkSettings.php @@ -234,7 +234,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->activeWatermarkProcess) { if (!NielsenActiveWatermarkProcessType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "activeWatermarkProcess" for "%s". The value "%s" is not a valid "NielsenActiveWatermarkProcessType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "activeWatermarkProcess" for "%s". The value "%s" is not a valid "NielsenActiveWatermarkProcessType".', __CLASS__, $v)); } $payload['activeWatermarkProcess'] = $v; } @@ -261,7 +261,7 @@ public function requestBody(): array } if (null !== $v = $this->sourceWatermarkStatus) { if (!NielsenSourceWatermarkStatusType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sourceWatermarkStatus" for "%s". The value "%s" is not a valid "NielsenSourceWatermarkStatusType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sourceWatermarkStatus" for "%s". The value "%s" is not a valid "NielsenSourceWatermarkStatusType".', __CLASS__, $v)); } $payload['sourceWatermarkStatus'] = $v; } @@ -270,7 +270,7 @@ public function requestBody(): array } if (null !== $v = $this->uniqueTicPerAudioTrack) { if (!NielsenUniqueTicPerAudioTrackType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "uniqueTicPerAudioTrack" for "%s". The value "%s" is not a valid "NielsenUniqueTicPerAudioTrackType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "uniqueTicPerAudioTrack" for "%s". The value "%s" is not a valid "NielsenUniqueTicPerAudioTrackType".', __CLASS__, $v)); } $payload['uniqueTicPerAudioTrack'] = $v; } diff --git a/src/ValueObject/NoiseReducer.php b/src/ValueObject/NoiseReducer.php index 53e52b2..a034685 100644 --- a/src/ValueObject/NoiseReducer.php +++ b/src/ValueObject/NoiseReducer.php @@ -104,7 +104,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->filter) { if (!NoiseReducerFilter::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "filter" for "%s". The value "%s" is not a valid "NoiseReducerFilter".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "filter" for "%s". The value "%s" is not a valid "NoiseReducerFilter".', __CLASS__, $v)); } $payload['filter'] = $v; } diff --git a/src/ValueObject/NoiseReducerTemporalFilterSettings.php b/src/ValueObject/NoiseReducerTemporalFilterSettings.php index 178144e..03ab1d7 100644 --- a/src/ValueObject/NoiseReducerTemporalFilterSettings.php +++ b/src/ValueObject/NoiseReducerTemporalFilterSettings.php @@ -131,13 +131,13 @@ public function requestBody(): array } if (null !== $v = $this->postTemporalSharpening) { if (!NoiseFilterPostTemporalSharpening::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "postTemporalSharpening" for "%s". The value "%s" is not a valid "NoiseFilterPostTemporalSharpening".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "postTemporalSharpening" for "%s". The value "%s" is not a valid "NoiseFilterPostTemporalSharpening".', __CLASS__, $v)); } $payload['postTemporalSharpening'] = $v; } if (null !== $v = $this->postTemporalSharpeningStrength) { if (!NoiseFilterPostTemporalSharpeningStrength::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "postTemporalSharpeningStrength" for "%s". The value "%s" is not a valid "NoiseFilterPostTemporalSharpeningStrength".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "postTemporalSharpeningStrength" for "%s". The value "%s" is not a valid "NoiseFilterPostTemporalSharpeningStrength".', __CLASS__, $v)); } $payload['postTemporalSharpeningStrength'] = $v; } diff --git a/src/ValueObject/OutputGroupSettings.php b/src/ValueObject/OutputGroupSettings.php index 2dcce7c..39cfff5 100644 --- a/src/ValueObject/OutputGroupSettings.php +++ b/src/ValueObject/OutputGroupSettings.php @@ -148,7 +148,7 @@ public function requestBody(): array } if (null !== $v = $this->type) { if (!OutputGroupType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "OutputGroupType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "type" for "%s". The value "%s" is not a valid "OutputGroupType".', __CLASS__, $v)); } $payload['type'] = $v; } diff --git a/src/ValueObject/ProresSettings.php b/src/ValueObject/ProresSettings.php index 77b0d7e..4373f91 100644 --- a/src/ValueObject/ProresSettings.php +++ b/src/ValueObject/ProresSettings.php @@ -314,25 +314,25 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->chromaSampling) { if (!ProresChromaSampling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "chromaSampling" for "%s". The value "%s" is not a valid "ProresChromaSampling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "chromaSampling" for "%s". The value "%s" is not a valid "ProresChromaSampling".', __CLASS__, $v)); } $payload['chromaSampling'] = $v; } if (null !== $v = $this->codecProfile) { if (!ProresCodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "ProresCodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "ProresCodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->framerateControl) { if (!ProresFramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "ProresFramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "ProresFramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!ProresFramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "ProresFramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "ProresFramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -344,13 +344,13 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!ProresInterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "ProresInterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "ProresInterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->parControl) { if (!ProresParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "ProresParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "ProresParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -362,19 +362,19 @@ public function requestBody(): array } if (null !== $v = $this->scanTypeConversionMode) { if (!ProresScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "ProresScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "ProresScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->slowPal) { if (!ProresSlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "ProresSlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "ProresSlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } if (null !== $v = $this->telecine) { if (!ProresTelecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "ProresTelecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "ProresTelecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } diff --git a/src/ValueObject/S3DestinationAccessControl.php b/src/ValueObject/S3DestinationAccessControl.php index 169c5d5..c8974ac 100644 --- a/src/ValueObject/S3DestinationAccessControl.php +++ b/src/ValueObject/S3DestinationAccessControl.php @@ -54,7 +54,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->cannedAcl) { if (!S3ObjectCannedAcl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "cannedAcl" for "%s". The value "%s" is not a valid "S3ObjectCannedAcl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "cannedAcl" for "%s". The value "%s" is not a valid "S3ObjectCannedAcl".', __CLASS__, $v)); } $payload['cannedAcl'] = $v; } diff --git a/src/ValueObject/S3DestinationSettings.php b/src/ValueObject/S3DestinationSettings.php index b7d53d2..f2309c6 100644 --- a/src/ValueObject/S3DestinationSettings.php +++ b/src/ValueObject/S3DestinationSettings.php @@ -92,7 +92,7 @@ public function requestBody(): array } if (null !== $v = $this->storageClass) { if (!S3StorageClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "storageClass" for "%s". The value "%s" is not a valid "S3StorageClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "storageClass" for "%s". The value "%s" is not a valid "S3StorageClass".', __CLASS__, $v)); } $payload['storageClass'] = $v; } diff --git a/src/ValueObject/S3EncryptionSettings.php b/src/ValueObject/S3EncryptionSettings.php index 97450d7..6fbc06f 100644 --- a/src/ValueObject/S3EncryptionSettings.php +++ b/src/ValueObject/S3EncryptionSettings.php @@ -96,7 +96,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->encryptionType) { if (!S3ServerSideEncryptionType::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "encryptionType" for "%s". The value "%s" is not a valid "S3ServerSideEncryptionType".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "encryptionType" for "%s". The value "%s" is not a valid "S3ServerSideEncryptionType".', __CLASS__, $v)); } $payload['encryptionType'] = $v; } diff --git a/src/ValueObject/SccDestinationSettings.php b/src/ValueObject/SccDestinationSettings.php index df95699..cbd0e20 100644 --- a/src/ValueObject/SccDestinationSettings.php +++ b/src/ValueObject/SccDestinationSettings.php @@ -57,7 +57,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->framerate) { if (!SccDestinationFramerate::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerate" for "%s". The value "%s" is not a valid "SccDestinationFramerate".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerate" for "%s". The value "%s" is not a valid "SccDestinationFramerate".', __CLASS__, $v)); } $payload['framerate'] = $v; } diff --git a/src/ValueObject/SrtDestinationSettings.php b/src/ValueObject/SrtDestinationSettings.php index 52038ca..fc72ae1 100644 --- a/src/ValueObject/SrtDestinationSettings.php +++ b/src/ValueObject/SrtDestinationSettings.php @@ -57,7 +57,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->stylePassthrough) { if (!SrtStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "SrtStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "SrtStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } diff --git a/src/ValueObject/TeletextDestinationSettings.php b/src/ValueObject/TeletextDestinationSettings.php index b78e3dc..4801df3 100644 --- a/src/ValueObject/TeletextDestinationSettings.php +++ b/src/ValueObject/TeletextDestinationSettings.php @@ -80,7 +80,7 @@ public function requestBody(): array foreach ($v as $listValue) { ++$index; if (!TeletextPageType::exists($listValue)) { - throw new InvalidArgument(sprintf('Invalid parameter "pageTypes" for "%s". The value "%s" is not a valid "TeletextPageType".', __CLASS__, $listValue)); + throw new InvalidArgument(\sprintf('Invalid parameter "pageTypes" for "%s". The value "%s" is not a valid "TeletextPageType".', __CLASS__, $listValue)); } $payload['pageTypes'][$index] = $listValue; } diff --git a/src/ValueObject/TimecodeBurnin.php b/src/ValueObject/TimecodeBurnin.php index 5d53f59..95f6e8b 100644 --- a/src/ValueObject/TimecodeBurnin.php +++ b/src/ValueObject/TimecodeBurnin.php @@ -89,7 +89,7 @@ public function requestBody(): array } if (null !== $v = $this->position) { if (!TimecodeBurninPosition::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "position" for "%s". The value "%s" is not a valid "TimecodeBurninPosition".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "position" for "%s". The value "%s" is not a valid "TimecodeBurninPosition".', __CLASS__, $v)); } $payload['position'] = $v; } diff --git a/src/ValueObject/TimecodeConfig.php b/src/ValueObject/TimecodeConfig.php index ce02d20..652672e 100644 --- a/src/ValueObject/TimecodeConfig.php +++ b/src/ValueObject/TimecodeConfig.php @@ -117,7 +117,7 @@ public function requestBody(): array } if (null !== $v = $this->source) { if (!TimecodeSource::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "source" for "%s". The value "%s" is not a valid "TimecodeSource".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "source" for "%s". The value "%s" is not a valid "TimecodeSource".', __CLASS__, $v)); } $payload['source'] = $v; } diff --git a/src/ValueObject/TtmlDestinationSettings.php b/src/ValueObject/TtmlDestinationSettings.php index 15cc257..bdd049b 100644 --- a/src/ValueObject/TtmlDestinationSettings.php +++ b/src/ValueObject/TtmlDestinationSettings.php @@ -55,7 +55,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->stylePassthrough) { if (!TtmlStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "TtmlStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "TtmlStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } diff --git a/src/ValueObject/UncompressedSettings.php b/src/ValueObject/UncompressedSettings.php index c5e52e8..9137c6e 100644 --- a/src/ValueObject/UncompressedSettings.php +++ b/src/ValueObject/UncompressedSettings.php @@ -226,19 +226,19 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->fourcc) { if (!UncompressedFourcc::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "fourcc" for "%s". The value "%s" is not a valid "UncompressedFourcc".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "fourcc" for "%s". The value "%s" is not a valid "UncompressedFourcc".', __CLASS__, $v)); } $payload['fourcc'] = $v; } if (null !== $v = $this->framerateControl) { if (!UncompressedFramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "UncompressedFramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "UncompressedFramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!UncompressedFramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "UncompressedFramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "UncompressedFramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -250,25 +250,25 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!UncompressedInterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "UncompressedInterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "UncompressedInterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!UncompressedScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "UncompressedScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "UncompressedScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->slowPal) { if (!UncompressedSlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "UncompressedSlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "UncompressedSlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } if (null !== $v = $this->telecine) { if (!UncompressedTelecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "UncompressedTelecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "UncompressedTelecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } diff --git a/src/ValueObject/Vc3Settings.php b/src/ValueObject/Vc3Settings.php index dd57cf7..fbbf24c 100644 --- a/src/ValueObject/Vc3Settings.php +++ b/src/ValueObject/Vc3Settings.php @@ -230,13 +230,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->framerateControl) { if (!Vc3FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vc3FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vc3FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!Vc3FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vc3FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vc3FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -248,31 +248,31 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!Vc3InterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "Vc3InterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "Vc3InterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->scanTypeConversionMode) { if (!Vc3ScanTypeConversionMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "Vc3ScanTypeConversionMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scanTypeConversionMode" for "%s". The value "%s" is not a valid "Vc3ScanTypeConversionMode".', __CLASS__, $v)); } $payload['scanTypeConversionMode'] = $v; } if (null !== $v = $this->slowPal) { if (!Vc3SlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "Vc3SlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "Vc3SlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } if (null !== $v = $this->telecine) { if (!Vc3Telecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "Vc3Telecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "Vc3Telecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } if (null !== $v = $this->vc3Class) { if (!Vc3Class::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "vc3Class" for "%s". The value "%s" is not a valid "Vc3Class".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "vc3Class" for "%s". The value "%s" is not a valid "Vc3Class".', __CLASS__, $v)); } $payload['vc3Class'] = $v; } diff --git a/src/ValueObject/VideoCodecSettings.php b/src/ValueObject/VideoCodecSettings.php index e3d3f94..831b623 100644 --- a/src/ValueObject/VideoCodecSettings.php +++ b/src/ValueObject/VideoCodecSettings.php @@ -250,7 +250,7 @@ public function requestBody(): array } if (null !== $v = $this->codec) { if (!VideoCodec::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codec" for "%s". The value "%s" is not a valid "VideoCodec".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codec" for "%s". The value "%s" is not a valid "VideoCodec".', __CLASS__, $v)); } $payload['codec'] = $v; } diff --git a/src/ValueObject/VideoDescription.php b/src/ValueObject/VideoDescription.php index 91d6f51..8f80e92 100644 --- a/src/ValueObject/VideoDescription.php +++ b/src/ValueObject/VideoDescription.php @@ -321,13 +321,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->afdSignaling) { if (!AfdSignaling::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "afdSignaling" for "%s". The value "%s" is not a valid "AfdSignaling".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "afdSignaling" for "%s". The value "%s" is not a valid "AfdSignaling".', __CLASS__, $v)); } $payload['afdSignaling'] = $v; } if (null !== $v = $this->antiAlias) { if (!AntiAlias::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "antiAlias" for "%s". The value "%s" is not a valid "AntiAlias".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "antiAlias" for "%s". The value "%s" is not a valid "AntiAlias".', __CLASS__, $v)); } $payload['antiAlias'] = $v; } @@ -336,7 +336,7 @@ public function requestBody(): array } if (null !== $v = $this->colorMetadata) { if (!ColorMetadata::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "colorMetadata" for "%s". The value "%s" is not a valid "ColorMetadata".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "colorMetadata" for "%s". The value "%s" is not a valid "ColorMetadata".', __CLASS__, $v)); } $payload['colorMetadata'] = $v; } @@ -345,7 +345,7 @@ public function requestBody(): array } if (null !== $v = $this->dropFrameTimecode) { if (!DropFrameTimecode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "dropFrameTimecode" for "%s". The value "%s" is not a valid "DropFrameTimecode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "dropFrameTimecode" for "%s". The value "%s" is not a valid "DropFrameTimecode".', __CLASS__, $v)); } $payload['dropFrameTimecode'] = $v; } @@ -360,13 +360,13 @@ public function requestBody(): array } if (null !== $v = $this->respondToAfd) { if (!RespondToAfd::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "respondToAfd" for "%s". The value "%s" is not a valid "RespondToAfd".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "respondToAfd" for "%s". The value "%s" is not a valid "RespondToAfd".', __CLASS__, $v)); } $payload['respondToAfd'] = $v; } if (null !== $v = $this->scalingBehavior) { if (!ScalingBehavior::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "scalingBehavior" for "%s". The value "%s" is not a valid "ScalingBehavior".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "scalingBehavior" for "%s". The value "%s" is not a valid "ScalingBehavior".', __CLASS__, $v)); } $payload['scalingBehavior'] = $v; } @@ -375,7 +375,7 @@ public function requestBody(): array } if (null !== $v = $this->timecodeInsertion) { if (!VideoTimecodeInsertion::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timecodeInsertion" for "%s". The value "%s" is not a valid "VideoTimecodeInsertion".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timecodeInsertion" for "%s". The value "%s" is not a valid "VideoTimecodeInsertion".', __CLASS__, $v)); } $payload['timecodeInsertion'] = $v; } diff --git a/src/ValueObject/VideoOverlayInput.php b/src/ValueObject/VideoOverlayInput.php index 01f466a..dd4bef9 100644 --- a/src/ValueObject/VideoOverlayInput.php +++ b/src/ValueObject/VideoOverlayInput.php @@ -119,7 +119,7 @@ public function requestBody(): array } if (null !== $v = $this->timecodeSource) { if (!InputTimecodeSource::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "timecodeSource" for "%s". The value "%s" is not a valid "InputTimecodeSource".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "timecodeSource" for "%s". The value "%s" is not a valid "InputTimecodeSource".', __CLASS__, $v)); } $payload['timecodeSource'] = $v; } diff --git a/src/ValueObject/VideoSelector.php b/src/ValueObject/VideoSelector.php index 51cfcbc..753fb63 100644 --- a/src/ValueObject/VideoSelector.php +++ b/src/ValueObject/VideoSelector.php @@ -275,25 +275,25 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->alphaBehavior) { if (!AlphaBehavior::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "alphaBehavior" for "%s". The value "%s" is not a valid "AlphaBehavior".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "alphaBehavior" for "%s". The value "%s" is not a valid "AlphaBehavior".', __CLASS__, $v)); } $payload['alphaBehavior'] = $v; } if (null !== $v = $this->colorSpace) { if (!ColorSpace::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "colorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "colorSpace" for "%s". The value "%s" is not a valid "ColorSpace".', __CLASS__, $v)); } $payload['colorSpace'] = $v; } if (null !== $v = $this->colorSpaceUsage) { if (!ColorSpaceUsage::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "colorSpaceUsage" for "%s". The value "%s" is not a valid "ColorSpaceUsage".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "colorSpaceUsage" for "%s". The value "%s" is not a valid "ColorSpaceUsage".', __CLASS__, $v)); } $payload['colorSpaceUsage'] = $v; } if (null !== $v = $this->embeddedTimecodeOverride) { if (!EmbeddedTimecodeOverride::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "embeddedTimecodeOverride" for "%s". The value "%s" is not a valid "EmbeddedTimecodeOverride".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "embeddedTimecodeOverride" for "%s". The value "%s" is not a valid "EmbeddedTimecodeOverride".', __CLASS__, $v)); } $payload['embeddedTimecodeOverride'] = $v; } @@ -305,7 +305,7 @@ public function requestBody(): array } if (null !== $v = $this->padVideo) { if (!PadVideo::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "padVideo" for "%s". The value "%s" is not a valid "PadVideo".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "padVideo" for "%s". The value "%s" is not a valid "PadVideo".', __CLASS__, $v)); } $payload['padVideo'] = $v; } @@ -317,13 +317,13 @@ public function requestBody(): array } if (null !== $v = $this->rotate) { if (!InputRotate::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rotate" for "%s". The value "%s" is not a valid "InputRotate".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rotate" for "%s". The value "%s" is not a valid "InputRotate".', __CLASS__, $v)); } $payload['rotate'] = $v; } if (null !== $v = $this->sampleRange) { if (!InputSampleRange::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "sampleRange" for "%s". The value "%s" is not a valid "InputSampleRange".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "sampleRange" for "%s". The value "%s" is not a valid "InputSampleRange".', __CLASS__, $v)); } $payload['sampleRange'] = $v; } diff --git a/src/ValueObject/Vp8Settings.php b/src/ValueObject/Vp8Settings.php index 3ec76d9..b37ef97 100644 --- a/src/ValueObject/Vp8Settings.php +++ b/src/ValueObject/Vp8Settings.php @@ -280,13 +280,13 @@ public function requestBody(): array } if (null !== $v = $this->framerateControl) { if (!Vp8FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vp8FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vp8FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!Vp8FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vp8FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vp8FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -307,7 +307,7 @@ public function requestBody(): array } if (null !== $v = $this->parControl) { if (!Vp8ParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Vp8ParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Vp8ParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -319,13 +319,13 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!Vp8QualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Vp8QualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Vp8QualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } if (null !== $v = $this->rateControlMode) { if (!Vp8RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Vp8RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Vp8RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } diff --git a/src/ValueObject/Vp9Settings.php b/src/ValueObject/Vp9Settings.php index 5509f7f..3cd7456 100644 --- a/src/ValueObject/Vp9Settings.php +++ b/src/ValueObject/Vp9Settings.php @@ -278,13 +278,13 @@ public function requestBody(): array } if (null !== $v = $this->framerateControl) { if (!Vp9FramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vp9FramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "Vp9FramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!Vp9FramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vp9FramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "Vp9FramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -305,7 +305,7 @@ public function requestBody(): array } if (null !== $v = $this->parControl) { if (!Vp9ParControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Vp9ParControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "parControl" for "%s". The value "%s" is not a valid "Vp9ParControl".', __CLASS__, $v)); } $payload['parControl'] = $v; } @@ -317,13 +317,13 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!Vp9QualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Vp9QualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Vp9QualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } if (null !== $v = $this->rateControlMode) { if (!Vp9RateControlMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Vp9RateControlMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "Vp9RateControlMode".', __CLASS__, $v)); } $payload['rateControlMode'] = $v; } diff --git a/src/ValueObject/WavSettings.php b/src/ValueObject/WavSettings.php index 88ef8aa..9cb11d4 100644 --- a/src/ValueObject/WavSettings.php +++ b/src/ValueObject/WavSettings.php @@ -106,7 +106,7 @@ public function requestBody(): array } if (null !== $v = $this->format) { if (!WavFormat::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "format" for "%s". The value "%s" is not a valid "WavFormat".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "format" for "%s". The value "%s" is not a valid "WavFormat".', __CLASS__, $v)); } $payload['format'] = $v; } diff --git a/src/ValueObject/WebvttDestinationSettings.php b/src/ValueObject/WebvttDestinationSettings.php index ef10d89..35e040b 100644 --- a/src/ValueObject/WebvttDestinationSettings.php +++ b/src/ValueObject/WebvttDestinationSettings.php @@ -87,13 +87,13 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->accessibility) { if (!WebvttAccessibilitySubs::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "accessibility" for "%s". The value "%s" is not a valid "WebvttAccessibilitySubs".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "accessibility" for "%s". The value "%s" is not a valid "WebvttAccessibilitySubs".', __CLASS__, $v)); } $payload['accessibility'] = $v; } if (null !== $v = $this->stylePassthrough) { if (!WebvttStylePassthrough::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "WebvttStylePassthrough".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "stylePassthrough" for "%s". The value "%s" is not a valid "WebvttStylePassthrough".', __CLASS__, $v)); } $payload['stylePassthrough'] = $v; } diff --git a/src/ValueObject/WebvttHlsSourceSettings.php b/src/ValueObject/WebvttHlsSourceSettings.php index 837c84b..c2b03f7 100644 --- a/src/ValueObject/WebvttHlsSourceSettings.php +++ b/src/ValueObject/WebvttHlsSourceSettings.php @@ -91,7 +91,7 @@ public function requestBody(): array } if (null !== $v = $this->renditionLanguageCode) { if (!LanguageCode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "renditionLanguageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "renditionLanguageCode" for "%s". The value "%s" is not a valid "LanguageCode".', __CLASS__, $v)); } $payload['renditionLanguageCode'] = $v; } diff --git a/src/ValueObject/Xavc4kIntraCbgProfileSettings.php b/src/ValueObject/Xavc4kIntraCbgProfileSettings.php index dbf59c2..7e7d361 100644 --- a/src/ValueObject/Xavc4kIntraCbgProfileSettings.php +++ b/src/ValueObject/Xavc4kIntraCbgProfileSettings.php @@ -54,7 +54,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->xavcClass) { if (!Xavc4kIntraCbgProfileClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "Xavc4kIntraCbgProfileClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "Xavc4kIntraCbgProfileClass".', __CLASS__, $v)); } $payload['xavcClass'] = $v; } diff --git a/src/ValueObject/Xavc4kIntraVbrProfileSettings.php b/src/ValueObject/Xavc4kIntraVbrProfileSettings.php index 8b03355..747c582 100644 --- a/src/ValueObject/Xavc4kIntraVbrProfileSettings.php +++ b/src/ValueObject/Xavc4kIntraVbrProfileSettings.php @@ -54,7 +54,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->xavcClass) { if (!Xavc4kIntraVbrProfileClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "Xavc4kIntraVbrProfileClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "Xavc4kIntraVbrProfileClass".', __CLASS__, $v)); } $payload['xavcClass'] = $v; } diff --git a/src/ValueObject/Xavc4kProfileSettings.php b/src/ValueObject/Xavc4kProfileSettings.php index 5854562..5cf093a 100644 --- a/src/ValueObject/Xavc4kProfileSettings.php +++ b/src/ValueObject/Xavc4kProfileSettings.php @@ -191,25 +191,25 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->bitrateClass) { if (!Xavc4kProfileBitrateClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitrateClass" for "%s". The value "%s" is not a valid "Xavc4kProfileBitrateClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitrateClass" for "%s". The value "%s" is not a valid "Xavc4kProfileBitrateClass".', __CLASS__, $v)); } $payload['bitrateClass'] = $v; } if (null !== $v = $this->codecProfile) { if (!Xavc4kProfileCodecProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "Xavc4kProfileCodecProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "codecProfile" for "%s". The value "%s" is not a valid "Xavc4kProfileCodecProfile".', __CLASS__, $v)); } $payload['codecProfile'] = $v; } if (null !== $v = $this->flickerAdaptiveQuantization) { if (!XavcFlickerAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcFlickerAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcFlickerAdaptiveQuantization".', __CLASS__, $v)); } $payload['flickerAdaptiveQuantization'] = $v; } if (null !== $v = $this->gopBreference) { if (!XavcGopBReference::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "XavcGopBReference".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "XavcGopBReference".', __CLASS__, $v)); } $payload['gopBReference'] = $v; } @@ -221,7 +221,7 @@ public function requestBody(): array } if (null !== $v = $this->qualityTuningLevel) { if (!Xavc4kProfileQualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Xavc4kProfileQualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "Xavc4kProfileQualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } diff --git a/src/ValueObject/XavcHdIntraCbgProfileSettings.php b/src/ValueObject/XavcHdIntraCbgProfileSettings.php index 324939e..15d34d2 100644 --- a/src/ValueObject/XavcHdIntraCbgProfileSettings.php +++ b/src/ValueObject/XavcHdIntraCbgProfileSettings.php @@ -54,7 +54,7 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->xavcClass) { if (!XavcHdIntraCbgProfileClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "XavcHdIntraCbgProfileClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "xavcClass" for "%s". The value "%s" is not a valid "XavcHdIntraCbgProfileClass".', __CLASS__, $v)); } $payload['xavcClass'] = $v; } diff --git a/src/ValueObject/XavcHdProfileSettings.php b/src/ValueObject/XavcHdProfileSettings.php index ab90fbc..f3885e0 100644 --- a/src/ValueObject/XavcHdProfileSettings.php +++ b/src/ValueObject/XavcHdProfileSettings.php @@ -217,19 +217,19 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->bitrateClass) { if (!XavcHdProfileBitrateClass::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "bitrateClass" for "%s". The value "%s" is not a valid "XavcHdProfileBitrateClass".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "bitrateClass" for "%s". The value "%s" is not a valid "XavcHdProfileBitrateClass".', __CLASS__, $v)); } $payload['bitrateClass'] = $v; } if (null !== $v = $this->flickerAdaptiveQuantization) { if (!XavcFlickerAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcFlickerAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "flickerAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcFlickerAdaptiveQuantization".', __CLASS__, $v)); } $payload['flickerAdaptiveQuantization'] = $v; } if (null !== $v = $this->gopBreference) { if (!XavcGopBReference::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "XavcGopBReference".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "gopBReference" for "%s". The value "%s" is not a valid "XavcGopBReference".', __CLASS__, $v)); } $payload['gopBReference'] = $v; } @@ -241,13 +241,13 @@ public function requestBody(): array } if (null !== $v = $this->interlaceMode) { if (!XavcInterlaceMode::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "XavcInterlaceMode".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "interlaceMode" for "%s". The value "%s" is not a valid "XavcInterlaceMode".', __CLASS__, $v)); } $payload['interlaceMode'] = $v; } if (null !== $v = $this->qualityTuningLevel) { if (!XavcHdProfileQualityTuningLevel::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "XavcHdProfileQualityTuningLevel".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "qualityTuningLevel" for "%s". The value "%s" is not a valid "XavcHdProfileQualityTuningLevel".', __CLASS__, $v)); } $payload['qualityTuningLevel'] = $v; } @@ -256,7 +256,7 @@ public function requestBody(): array } if (null !== $v = $this->telecine) { if (!XavcHdProfileTelecine::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "XavcHdProfileTelecine".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "telecine" for "%s". The value "%s" is not a valid "XavcHdProfileTelecine".', __CLASS__, $v)); } $payload['telecine'] = $v; } diff --git a/src/ValueObject/XavcSettings.php b/src/ValueObject/XavcSettings.php index f93ec2e..b26e88c 100644 --- a/src/ValueObject/XavcSettings.php +++ b/src/ValueObject/XavcSettings.php @@ -360,25 +360,25 @@ public function requestBody(): array $payload = []; if (null !== $v = $this->adaptiveQuantization) { if (!XavcAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "XavcAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "adaptiveQuantization" for "%s". The value "%s" is not a valid "XavcAdaptiveQuantization".', __CLASS__, $v)); } $payload['adaptiveQuantization'] = $v; } if (null !== $v = $this->entropyEncoding) { if (!XavcEntropyEncoding::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "entropyEncoding" for "%s". The value "%s" is not a valid "XavcEntropyEncoding".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "entropyEncoding" for "%s". The value "%s" is not a valid "XavcEntropyEncoding".', __CLASS__, $v)); } $payload['entropyEncoding'] = $v; } if (null !== $v = $this->framerateControl) { if (!XavcFramerateControl::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "XavcFramerateControl".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateControl" for "%s". The value "%s" is not a valid "XavcFramerateControl".', __CLASS__, $v)); } $payload['framerateControl'] = $v; } if (null !== $v = $this->framerateConversionAlgorithm) { if (!XavcFramerateConversionAlgorithm::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "XavcFramerateConversionAlgorithm".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "framerateConversionAlgorithm" for "%s". The value "%s" is not a valid "XavcFramerateConversionAlgorithm".', __CLASS__, $v)); } $payload['framerateConversionAlgorithm'] = $v; } @@ -390,13 +390,13 @@ public function requestBody(): array } if (null !== $v = $this->profile) { if (!XavcProfile::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "XavcProfile".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "profile" for "%s". The value "%s" is not a valid "XavcProfile".', __CLASS__, $v)); } $payload['profile'] = $v; } if (null !== $v = $this->slowPal) { if (!XavcSlowPal::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "XavcSlowPal".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "slowPal" for "%s". The value "%s" is not a valid "XavcSlowPal".', __CLASS__, $v)); } $payload['slowPal'] = $v; } @@ -405,13 +405,13 @@ public function requestBody(): array } if (null !== $v = $this->spatialAdaptiveQuantization) { if (!XavcSpatialAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcSpatialAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "spatialAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcSpatialAdaptiveQuantization".', __CLASS__, $v)); } $payload['spatialAdaptiveQuantization'] = $v; } if (null !== $v = $this->temporalAdaptiveQuantization) { if (!XavcTemporalAdaptiveQuantization::exists($v)) { - throw new InvalidArgument(sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcTemporalAdaptiveQuantization".', __CLASS__, $v)); + throw new InvalidArgument(\sprintf('Invalid parameter "temporalAdaptiveQuantization" for "%s". The value "%s" is not a valid "XavcTemporalAdaptiveQuantization".', __CLASS__, $v)); } $payload['temporalAdaptiveQuantization'] = $v; }