Skip to content

Commit

Permalink
SDK-2357 added validations to classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jun 24, 2024
1 parent 1ae57b1 commit 823eca6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.29","version":"3.59.3:v3.59.3#30ba9ecc2b0e5205e578fe29973c15653d9bfd29","indent":" ","lineEnding":"\n","rules":{"array_syntax":{"syntax":"short"},"no_unused_imports":true,"ordered_imports":{"imports_order":["const","class","function"]},"php_unit_fqcn_annotation":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true},"hashes":{"\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8233\/examples\/profile\/sdk\/src\/YotiClient.php":"36f7e583f0a046456d29ce23238800b6","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder441\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10615\/src\/Identity\/WrappedReceipt.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7885\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder3331\/src\/Identity\/ErrorReason.php":"ffa522415154592179dec4b37b471970","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7552\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10385\/src\/Identity\/ErrorReason.php":"ffa522415154592179dec4b37b471970","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9021\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1782\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder5834\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748"}}
{"php":"8.1.29","version":"3.59.3:v3.59.3#30ba9ecc2b0e5205e578fe29973c15653d9bfd29","indent":" ","lineEnding":"\n","rules":{"array_syntax":{"syntax":"short"},"no_unused_imports":true,"ordered_imports":{"imports_order":["const","class","function"]},"php_unit_fqcn_annotation":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true},"hashes":{"\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8233\/examples\/profile\/sdk\/src\/YotiClient.php":"36f7e583f0a046456d29ce23238800b6","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder441\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10615\/src\/Identity\/WrappedReceipt.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7885\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder3331\/src\/Identity\/ErrorReason.php":"ffa522415154592179dec4b37b471970","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7552\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10385\/src\/Identity\/ErrorReason.php":"ffa522415154592179dec4b37b471970","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9021\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1782\/src\/Identity\/WrappedReceipt.php":"91690e49d5489e1a14f0c07ca024306f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder5834\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4202\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8372\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9846\/src\/Identity\/ErrorReason.php":"6dc63c421ef6b73814018f4054018f6a","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder440\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder11226\/src\/Identity\/ErrorReason.php":"5c6e5037955288ab2455d33f4385614a","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4772\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2043\/src\/Identity\/ErrorReason.php":"5c6e5037955288ab2455d33f4385614a","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9247\/src\/Identity\/ErrorReason.php":"4a563ac15db054683d52458b6d1977b9","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder3891\/src\/Identity\/ErrorReason.php":"fc2ecd1f01768ee86d4b8742aa9e49e4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7263\/src\/Identity\/ErrorReason.php":"8529e54a1af2eaad8f33087af762bc4e","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8220\/src\/Identity\/ErrorReason.php":"9b2c139ad97ba5b4202a321a2e8edd25","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1211\/src\/Identity\/ErrorReason.php":"8529e54a1af2eaad8f33087af762bc4e","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2184\/src\/Identity\/ErrorReason.php":"fc2ecd1f01768ee86d4b8742aa9e49e4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10931\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4966\/src\/Identity\/RequirementNotMetDetails.php":"a8cbd09ef4d56d35c1420b69ff4700f3","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder205\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder120\/src\/Identity\/ErrorReason.php":"fc2ecd1f01768ee86d4b8742aa9e49e4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder5797\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10725\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7115\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder421\/src\/Identity\/ErrorReason.php":"8529e54a1af2eaad8f33087af762bc4e","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8721\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6292\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6772\/src\/Identity\/ErrorReason.php":"fc2ecd1f01768ee86d4b8742aa9e49e4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8432\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4910\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1793\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2072\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6605\/src\/Identity\/WrappedReceipt.php":"0e2d9ad44898dec88316972b4b2bc748","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2711\/src\/Identity\/WrappedReceipt.php":"24a7cd8e8fe5aaac20017b66d2d8031d","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder5221\/src\/Identity\/WrappedReceipt.php":"79f62bc2934d0856da8e42c1026c5e8f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9256\/src\/Identity\/WrappedReceipt.php":"83951ad8904476b440429f76e88ef7b4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1645\/src\/Identity\/WrappedReceipt.php":"0d09e2f114e843480d24ce944d5ec0a4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6460\/src\/Identity\/WrappedReceipt.php":"51e386a783be03b0d1f61634882f9ed4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4660\/src\/Identity\/WrappedReceipt.php":"c740e996b9f0c2f37127adca5756c961","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10602\/src\/Identity\/WrappedReceipt.php":"92283499ac53403c362a28bd225f2635","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder289\/src\/Identity\/WrappedReceipt.php":"2c1cee94b446bac31f27260c30f2af6c","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8368\/src\/Identity\/WrappedReceipt.php":"827420c52d4cc311b694e843f251f98a","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder11534\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder3079\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4318\/src\/Identity\/WrappedReceipt.php":"49a08dd4d8c1a6bd9e0f93345eff23f1","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4937\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6574\/src\/Identity\/WrappedReceipt.php":"1d6f189412a649d4deaeb6656dc4b5ef","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7158\/src\/Identity\/WrappedReceipt.php":"5edfe93482c753e304e5afed6e88dbd4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder5037\/src\/Identity\/WrappedReceipt.php":"5edfe93482c753e304e5afed6e88dbd4","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder12021\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8464\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2742\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder9275\/src\/Identity\/RequirementNotMetDetails.php":"33ef678bf5e80a60ae779de37cf86420","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8370\/src\/Identity\/RequirementNotMetDetails.php":"e0c238b1896377e424c4bdcf7bd247ce","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7598\/src\/Identity\/RequirementNotMetDetails.php":"1fd87e80cf1e18f503f3c782602a83b0","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7595\/src\/Identity\/RequirementNotMetDetails.php":"74e78a53525369082ea457d59db03f63","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1404\/src\/Identity\/RequirementNotMetDetails.php":"c9dc078d5bbebeba01ae1a90befc97a1","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder7929\/src\/Identity\/RequirementNotMetDetails.php":"5edc1d1760042d1ebea98fdabadfd86f","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder1851\/src\/Identity\/RequirementNotMetDetails.php":"c38f1c399533ab560ffeaf783c1a530b","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder8788\/src\/Identity\/ErrorReason.php":"dcad771b347fbf368fe05851b4313686","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4385\/src\/Identity\/ErrorReason.php":"253ca0c76de4e5fb7a21885f73ad3287","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder4273\/src\/Identity\/ErrorReason.php":"d67e2c5f0912895e8ecbe7963590448b","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder6071\/src\/Identity\/ErrorReason.php":"db3e91b95baa84ee684ceabe7a7e9a7a","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder11551\/src\/Identity\/ErrorReason.php":"2cd0c5a026553027f5feadf79f14dfde","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder2560\/src\/Identity\/ErrorReason.php":"f74bbd7184b4aabf707d13ab09da6a2d","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder11450\/src\/Identity\/ErrorReason.php":"fe6eee626ca85bc311eb64a672fcf143","\/private\/var\/folders\/hs\/kw0d0_0d2kj8xl5yd5_t2rz40000gn\/T\/PHP CS Fixertemp_folder10336\/src\/Identity\/RequirementNotMetDetails.php":"c38f1c399533ab560ffeaf783c1a530b"}}
14 changes: 12 additions & 2 deletions src/Identity/ErrorReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ class ErrorReason
*/
private $requirementNotMetDetails;


/**
* @param array<int, array<string, string>> $data
*/
public function __construct(array $data)
{
$this->requirementNotMetDetails = new RequirementNotMetDetails($data);
if (isset($data[0]) && is_array($data[0])) {
$this->requirementNotMetDetails = new RequirementNotMetDetails($data);
} else {
// Pass an empty or default array if the data is invalid
$this->requirementNotMetDetails = new RequirementNotMetDetails([[
"failure_type" => '',
"details" => '',
"audit_id" => '',
"document_country_iso_code" => '',
"document_type" => ''
]]);
}
}

/**
Expand Down
10 changes: 5 additions & 5 deletions src/Identity/RequirementNotMetDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ class RequirementNotMetDetails
*/
public function __construct(array $data)
{
$this->failureType = $data[0]["failure_type"];
$this->details = $data[0]["details"];
$this->auditId = $data[0]["audit_id"];
$this->documentCountryIsoCode = $data[0]["document_country_iso_code"];
$this->documentType = $data[0]["document_type"];
$this->failureType = $data[0]["failure_type"] ?? '';
$this->details = $data[0]["details"] ?? '';
$this->auditId = $data[0]["audit_id"] ?? '';
$this->documentCountryIsoCode = $data[0]["document_country_iso_code"] ?? '';
$this->documentType = $data[0]["document_type"] ?? '';
}

/**
Expand Down
6 changes: 5 additions & 1 deletion src/Identity/WrappedReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ public function __construct(array $sessionData)
$this->error = $sessionData['error'];
}
if (isset($sessionData['errorDetails'])) {
$this->errorReason = new ErrorReason($sessionData['errorDetails']['error_reason']);
if (isset($sessionData["error_details"]["error_reason"]["requirements_not_met_details"])) {
$this->errorReason = new ErrorReason(
$sessionData['errorDetails']['error_reason']['requirements_not_met_details']
);
}
}
}

Expand Down

0 comments on commit 823eca6

Please sign in to comment.