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.
36 lines
638 B
36 lines
638 B
<?php
|
|
namespace classes;
|
|
|
|
class Answer
|
|
{
|
|
private int $id;
|
|
private string $content;
|
|
private int $idQuestion;
|
|
|
|
public function __construct(int $id, string $content, int $idQuestion)
|
|
{
|
|
$this->id = $id;
|
|
$this->content = $content;
|
|
$this->idQuestion = $idQuestion;
|
|
}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
public function getContent()
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
public function getIdQuestion()
|
|
{
|
|
return $this->idQuestion;
|
|
}
|
|
|
|
public function setContent(string $content)
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
}
|