New proper types

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-04-10 15:50:39 +02:00 committed by Jonas Rittershofer
commit 7aa3f7ace0
4 changed files with 31 additions and 10 deletions

View file

@ -43,6 +43,13 @@ class Question extends Entity {
protected $mandatory;
protected $text;
const TYPES = [
'short',
'long',
'multiple',
'multiple_unique'
];
public function __construct() {
$this->addType('formId', 'integer');
$this->addType('order', 'integer');