<?php
/**
 * Data Structures Questions Entity
 * 
 * Support class for data structures questions
 * @author tm - Advantis
 * @version 1.0.1
 * @package Backend\DataStructures 
 */
class DataStructuresQuestions extends Entity {
	
	// DB Model
	const BASEENTITY = 'dsdquestions';
	const VOIDCODE = __DSD_UNPOPULATED_CODE;
	public $id;
	public $datastructuredefinitionid;
	public $questionid;
	public $void;
	public $voidreasoncodeid;
	
	/**
	 * Construtor
	 * If $id is passed gets entity from DB model baseentity
	 *
	 * @param int $id
	 *        	(optional)
	 */
	function DataStructuresQuestions($id = null) {
		parent::Entity ( $this::BASEENTITY, $id );
	}
	
	/**
	 * Prepares a new DataStructuresQuestions
	 *
	 * @param int $datastructuredefinitionid        	
	 * @param int $questionid        	
	 * @param string $void
	 *        	code
	 * @param int $voidreasoncodeid
	 *        	value
	 */
	function setNew($datastructuredefinitionid, $questionid, $void, $voidreasoncodeid) {
		$this->datastructuredefinitionid = $datastructuredefinitionid;
		$this->questionid = $questionid;
		$this->void = $void;
		$this->voidreasoncodeid = $voidreasoncodeid;
	}
}

?>


  
    

