<?php
namespace Main\StrategyPattern;

require_once 'Object.php';
require_once 'IMarker.php';

use \Main\Object;

class Question extends Object
{
	// Attributes
	private $_question;
	private $_marker;
	
	// Constructor
	
	public function __construct($question, IMarker $marker)
	{
		$this->_question = $question;
		$this->_marker = $marker;
	}
	
	// Methods for properties
	// Getters and Setters
	public function GetQuestion()
	{
		return $this->_question;
	}
	
	// Methods
	public function CheckAnswers($answers)
	{
		return $this->_marker->Mark($answers);
	}
}
?>