From 4caed2154a24f04e1c52926acb33ea62991f5c43 Mon Sep 17 00:00:00 2001 From: Hieu Nv Date: Wed, 21 Aug 2019 09:46:24 +0700 Subject: [PATCH] update submit Question and Answer --- Model/Resolver/SubmitAnswer.php | 12 ++++++------ Model/Resolver/SubmitQuestion.php | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Model/Resolver/SubmitAnswer.php b/Model/Resolver/SubmitAnswer.php index 11760e3..b4a71a2 100644 --- a/Model/Resolver/SubmitAnswer.php +++ b/Model/Resolver/SubmitAnswer.php @@ -14,7 +14,7 @@ * version in the future. * * @category Ecomteck - * @package Ecomteck_ProductQuestionsGraph + * @package Ecomteck_ProductQuestionsGraphQl * @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/) * @license https://ecomteck.com/LICENSE.txt */ @@ -43,7 +43,7 @@ class SubmitAnswer implements ResolverInterface /** * @var CreateAnswer */ - private $creatAnswer; + private $createAnswer; /** * User Type Model @@ -64,18 +64,18 @@ class SubmitAnswer implements ResolverInterface /** * SubmitQuestion constructor. - * @param CreateAnswer $creatAnswer + * @param CreateAnswer $createAnswer * @param UserType $userType * @param AnswerDataProvider $answerDataProvider * @param QuestionRepositoryInterface $questionRepository */ public function __construct( - CreateAnswer $creatAnswer, + CreateAnswer $createAnswer, UserType $userType, AnswerDataProvider $answerDataProvider, QuestionRepositoryInterface $questionRepository ) { - $this->creatAnswer = $creatAnswer; + $this->createAnswer = $createAnswer; $this->userType = $userType; $this->answerDataProvider = $answerDataProvider; $this->questionRepository = $questionRepository; @@ -103,7 +103,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value $data['answer_created_by'] = $userCode; $data['answer_user_type_id'] = $userCode; - $answer = $this->creatAnswer->execute($data); + $answer = $this->createAnswer->execute($data); try { $answerData = $this->answerDataProvider->getData($answer->getId()); } catch (NoSuchEntityException $e) { diff --git a/Model/Resolver/SubmitQuestion.php b/Model/Resolver/SubmitQuestion.php index ccd1ecd..50eb6dd 100644 --- a/Model/Resolver/SubmitQuestion.php +++ b/Model/Resolver/SubmitQuestion.php @@ -14,7 +14,7 @@ * version in the future. * * @category Ecomteck - * @package Ecomteck_ProductQuestionsGraph + * @package Ecomteck_ProductQuestionsGraphQl * @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/) * @license https://ecomteck.com/LICENSE.txt */ @@ -48,7 +48,7 @@ class SubmitQuestion implements ResolverInterface /** * @var CreateQuestion */ - private $creatQuestion; + private $createQuestion; /** * User Type Model @@ -65,18 +65,18 @@ class SubmitQuestion implements ResolverInterface /** * SubmitQuestion constructor. * @param ProductRepositoryInterface $productRepository - * @param CreateQuestion $creatQuestion + * @param CreateQuestion $createQuestion * @param UserType $userType * @param QuestionDataProvider $questionDataProvider */ public function __construct( ProductRepositoryInterface $productRepository, - CreateQuestion $creatQuestion, + CreateQuestion $createQuestion, UserType $userType, QuestionDataProvider $questionDataProvider ) { $this->productRepository = $productRepository; - $this->creatQuestion = $creatQuestion; + $this->createQuestion = $createQuestion; $this->userType = $userType; $this->questionDataProvider = $questionDataProvider; } @@ -102,7 +102,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value $data['question_created_by'] = $userCode; $data['question_user_type_id'] = $userCode; - $question = $this->creatQuestion->execute($data); + $question = $this->createQuestion->execute($data); try { $questionData = $this->questionDataProvider->getData($question->getId()); } catch (NoSuchEntityException $e) {