source: Dev/trunk/classes/Question.php @ 30

Last change on this file since 30 was 29, checked in by fpvanagthoven, 14 years ago

ID passed. Simple Question and Survey php data classes.

File size: 500 bytes
Line 
1<?php
2
3/*
4 * To change this template, choose Tools | Templates
5 * and open the template in the editor.
6 */
7
8/**
9 * Description of Question
10 *
11 * @author fpvanagthoven
12 */
13class Question {
14    public $title;
15    public $type;
16    public $description;
17    public $answers;
18   
19    public function __construct($title, $type, $description = null)
20    {
21        $this->title = $title;
22        $this->type = $type;
23        $this->description = $description;
24        $this->answers = array();
25    }
26
27}
28
29?>
Note: See TracBrowser for help on using the repository browser.