connection = connect(); } public function getDetailsListResponsesOfCandidate(int $idListResponse) { $gatewayResponse = new GatewayResponse(); $gatewayKeyword = new GatewayKeyword(); $tabKeywords = []; $query = "SELECT * FROM ListResponsesOfCandidate WHERE id = :id"; $this->connection->executeQuery($query, array( ':id' => array($idListResponse, PDO::PARAM_INT) )); $questionList = $this->connection->getResults()[0]; $responses = $gatewayResponse->getResponsesByIdListCandidate($questionList['id']); foreach ($responses as $row) { $tabKeywords[] = $gatewayKeyword->getKeywordsContentByCategorieze($row['id']); } return array($questionList, $responses, $tabKeywords); } public function getAllListResponsesOfCandidate(): array { $query = "SELECT * FROM ListResponsesOfCandidate"; $this->connection->executeQuery($query); return $this->connection->getResults(); } public function deleteListResponseOfCandidate(): void { } }