Add Response class
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
22f7ea87fd
commit
b59fc21b42
@ -0,0 +1,81 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace BusinessClass;
|
||||||
|
|
||||||
|
class Response
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $date;
|
||||||
|
private string $titleForm;
|
||||||
|
private array $questionsResponses;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $id
|
||||||
|
* @param string $date
|
||||||
|
* @param string $titleForm
|
||||||
|
* @param array $questionsResponses
|
||||||
|
*/
|
||||||
|
public function __construct(int $id, string $date, string $titleForm, array $questionsResponses)
|
||||||
|
{
|
||||||
|
$this->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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue