From b59fc21b4279f330a0d37a69477f9e15dd22204c Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 3 Feb 2023 14:44:47 +0100 Subject: [PATCH] Add Response class --- Source/BusinessClass/Response.php | 81 +++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Source/BusinessClass/Response.php diff --git a/Source/BusinessClass/Response.php b/Source/BusinessClass/Response.php new file mode 100644 index 0000000..9f5b5ab --- /dev/null +++ b/Source/BusinessClass/Response.php @@ -0,0 +1,81 @@ +id = $id; + $this->date = $date; + $this->titleForm = $titleForm; + $this->questionsResponses = $questionsResponses; + } + + /** + * @return int + */ + public function getId(): int + { + return $this->id; + } + + /** + * @return string + */ + public function getDate(): string + { + return $this->date; + } + + /** + * @param string $date + */ + public function setDate(string $date): void + { + $this->date = $date; + } + + /** + * @return string + */ + public function getTitleForm(): string + { + return $this->titleForm; + } + + /** + * @param string $titleForm + */ + public function setTitleForm(string $titleForm): void + { + $this->titleForm = $titleForm; + } + + /** + * @return array + */ + public function getQuestionsResponses(): array + { + return $this->questionsResponses; + } + + /** + * @param array $questionsResponses + */ + public function setQuestionsResponses(array $questionsResponses): void + { + $this->questionsResponses = $questionsResponses; + } +} \ No newline at end of file