<?

/* Candidate
 * 
 * A class for holding information about a give candidate/choice
 */
 
class Candidate
{
	
	/* Member fields
	 *
	 * String $text - the text displayed for the candidate
	 * String $more_info_link - the link for more information about the
	 *   candidate (could be "" meaning that there is no information)
	 * String $picture_link - the link/filename for a picture of the candidate
	 *   (may be "" meaning that there is no picture)
	 */
	private $text;
	private $more_info_link;
	private $picture_link;

	/* __construct($cand_text, $info_link, $picture)
	 *
	 * The constructor for the class which takes in basic information about the
	 * candidate
	 *
	 * In: String $cand_text - the text displayed for the choice of this candidate
	 * In: String $info_link - the link/filename for more information about the
	 *     candidate
	 * In: String $picture - the link/filename for a picture of the candidate
	 */
	public function __construct($cand_text, $info_link, $picture){
		$this->text = $cand_text;
		$this->more_info_link = $info_link;
		$this->picture_link = $picture;
	}

	/* getText()
	 * 
	 * This method returns the text that is displayed for the candidate
	 *
	 * Return: String - the text that is displayed for the candidate
	 */
	public function getText(){
		return $this->text;
	}

	/* getMoreInfoLink()
	 * 
	 * This method returns the link/filename for more information about the
	 * candidate
	 *
	 * Return: String - the link/filename for more information about the candidate
	 */
	public function getMoreInfoLink(){
		return $this->more_info_link;
	}

	/* getPictureLink()
	 * 
	 * This method returns the link/filename for the picture of the candidate
	 *
	 * Return: String - the link/filename for the picture of the candidate
	 */
	public function getPictureLink(){
		return $this->picture_link;
	}
}

?>
