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.
32 lines
797 B
32 lines
797 B
<?php
|
|
|
|
namespace FORM_BusinessClass;
|
|
|
|
class YesNoQuestion extends Question
|
|
{
|
|
/**
|
|
* @param string $content
|
|
* @param array $categories
|
|
*/
|
|
public function __construct(string $content, array $categories)
|
|
{
|
|
parent::__construct($content, $categories);
|
|
}
|
|
|
|
public function responseStrategy()
|
|
{
|
|
// TODO: Implement responseStrategy() method
|
|
}
|
|
|
|
public function printStrategy(): string
|
|
{
|
|
$content = $this->getContent();
|
|
return "<div id='question'>
|
|
<label>$content</label>
|
|
<select name='answers[]'>
|
|
<option value='Yes' selected>Yes</option>
|
|
<option value='No'>No</option>
|
|
</select>
|
|
</div>";
|
|
}
|
|
} |