<commit_before><?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
namespace Egulias\QuizBundle\Model\Questions;

use Egulias\QuizBundle\Model\Answers\Answer;
use Egulias\QuizBundle\Model\Questions\Option;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Declaration of class Question to allow the creation of multiple types of questions
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class Question
{
    const TEXT = 'text';
    const TEXTAREA = 'textarea';
    const NUMBER = 'number';
    const BOOLEAN = 'boolean';
    const CHOICE = 'choice';


    protected $name = '';
    protected $text = '';
    protected $answer = null;


    abstract public function setText($text);
    abstract public function getText();
    abstract public function setType($type);
    abstract public function getType();

//    abstract public function setAnswer(Answer $answer);
//    abstract public function getAnswer();

    public function __construct()
    {
    }

    public static function getBaseTypes()
    {
        $t = array(
            self::TEXT      => self::TEXT,
            self::TEXTAREA  => self::TEXTAREA,
            self::NUMBER    => self::NUMBER,
            self::BOOLEAN   => self::BOOLEAN,
            self::CHOICE    => self::CHOICE,
        );
        return $t;
    }

    public function __toString()
    {
        return $this->getName();
    }
}<commit_msg>Removed not implemented field types<commit_after><?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
namespace Egulias\QuizBundle\Model\Questions;

use Egulias\QuizBundle\Model\Answers\Answer;
use Egulias\QuizBundle\Model\Questions\Option;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Declaration of class Question to allow the creation of multiple types of questions
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class Question
{
    const TEXT = 'text';
    const TEXTAREA = 'textarea';
    const NUMBER = 'number';
    const BOOLEAN = 'boolean';
    const CHOICE = 'choice';


    protected $name = '';
    protected $text = '';
    protected $answer = null;


    abstract public function setText($text);
    abstract public function getText();
    abstract public function setType($type);
    abstract public function getType();

//    abstract public function setAnswer(Answer $answer);
//    abstract public function getAnswer();

    public function __construct()
    {
    }

    public static function getBaseTypes()
    {
        $t = array(
            self::TEXT      => self::TEXT,
            self::TEXTAREA  => self::TEXTAREA,
 //           self::NUMBER    => self::NUMBER,
 //           self::BOOLEAN   => self::BOOLEAN,
            self::CHOICE    => self::CHOICE,
        );
        return $t;
    }

    public function __toString()
    {
        return $this->getName();
    }
}
{'fraction_non_alphanumeric': 0.12008577555396711, 'fraction_numerical': 0.0014295925661186562, 'mean_word_length': 2.7171314741035855, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3280923', 'n_tokens_mistral': 818, 'n_tokens_neox': 784, 'n_words': 216}