You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
514 B
30 lines
514 B
<?php
|
|
|
|
class Answer
|
|
{
|
|
private int $id;
|
|
private string $content;
|
|
private int $idQuestion;
|
|
|
|
public function __construct(string $content, int $idQuestion)
|
|
{
|
|
$this->content = $content;
|
|
$this->idQuestion = $idQuestion;
|
|
}
|
|
|
|
public function getContent()
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
public function getIdQuestion()
|
|
{
|
|
return $this->idQuestion;
|
|
}
|
|
|
|
public function setContent(string $content)
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
}
|