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.
35 lines
670 B
35 lines
670 B
<?php
|
|
|
|
namespace BusinessClass;
|
|
|
|
abstract class Question implements IResponseProcessingStrategy, IPrintQuestionStrategy
|
|
{
|
|
private string $content;
|
|
/**
|
|
* @param string $content
|
|
*/
|
|
public function __construct(string $content)
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
|
|
public abstract function responseStrategy();
|
|
|
|
public abstract function printStrategy(): string;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getContent(): string
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
/**
|
|
* @param string $content
|
|
*/
|
|
public function setContent(string $content): void
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
} |