* */ abstract class taoQtiCommon_helpers_AbstractStateOutput { /** * The output associative array output. * * @var array */ private $output; /** * Create a new tao_helpers_AbstractStateOutput object. * */ public function __construct() { $this->setOutput(array()); } /** * Set the output array. * * @param array $output An array. */ protected function setOutput(array $output) { $this->output = $output; } /** * Get the output array. * * @return array An array of QTI Variables and their values formatted. */ public function &getOutput() { return $this->output; } /** * Add a variable to the State that has to be built for the client-side. The final output * array is available through the tao_helpers_StateOutput::getOutput() method. * * @param Variable $variable A QTI Runtime Variable */ abstract public function addVariable(Variable $variable); }