diff --git a/composer.json b/composer.json index 5f50a12..0f7bb42 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require-dev": { "phpunit/phpunit": "^7.0", "php-http/message-factory": "^1.0", - "php-http/curl-client": "^1.6", + "php-http/curl-client": "^2.0", "php-http/message": "^1.0", "nyholm/psr7": "^1.1", "nyholm/nsa": "^1.0" diff --git a/src/Model/Match/CandidateMatch.php b/src/Model/Match/CandidateMatch.php index f3a4f08..0e6ea4e 100644 --- a/src/Model/Match/CandidateMatch.php +++ b/src/Model/Match/CandidateMatch.php @@ -13,6 +13,7 @@ final class CandidateMatch implements CreatableFromArray private $confidence; private $grade; private $dimensionScore; + private $resultCulture; private $text; private function __construct() @@ -27,6 +28,7 @@ public static function createFromArray(array $data) $model->match = $data['attributes']['match']; $model->confidence = $data['attributes']['confidence'] ?? null; $model->grade = $data['attributes']['grade'] ?? null; + $model->resultCulture = $data['attributes']['result_culture'] ?? null; $model->dimensionScore = $data['attributes']['dimension_score'] ?? []; $model->text = $data['attributes']['text'] ?? []; @@ -62,4 +64,9 @@ public function getText(): array { return $this->text; } + + public function getResultCulture(): ?int + { + return $this->resultCulture; + } }