mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			689 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			689 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * Survey response object
 | 
						|
 * 
 | 
						|
 * @author Pierre HUBERT
 | 
						|
 */
 | 
						|
 | 
						|
class SurveyResponse extends BaseUniqueObjectFromUser {
 | 
						|
 | 
						|
	//Private fields
 | 
						|
	private $surveyID;
 | 
						|
	private $choiceID;
 | 
						|
 | 
						|
	//Set and get survey ID
 | 
						|
	public function set_surveyID(int $surveyID){
 | 
						|
		$this->surveyID = $surveyID;
 | 
						|
	}
 | 
						|
 | 
						|
	public function has_surveyID() : bool {
 | 
						|
		return $this->surveyID > 0;
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_surveyID() : int {
 | 
						|
		return $this->surveyID;
 | 
						|
	}
 | 
						|
 | 
						|
	//Set and get choice ID
 | 
						|
	public function set_choiceID(int $choiceID){
 | 
						|
		$this->choiceID = $choiceID;
 | 
						|
	}
 | 
						|
 | 
						|
	public function has_choiceID() : bool {
 | 
						|
		return $this->choiceID > 0;
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_choiceID() : int {
 | 
						|
		return $this->choiceID;
 | 
						|
	}
 | 
						|
 | 
						|
} |