/** * @see \qtism\data\state\VariableDeclaration::getComponents() */ public function getComponents() { $comp = parent::getComponents()->getArrayCopy(); if ($this->getAreaMapping() !== null) { $comp[] = $this->getAreaMapping(); } if ($this->getMapping() !== null) { $comp[] = $this->getMapping(); } if ($this->getCorrectResponse() !== null) { $comp[] = $this->getCorrectResponse(); } return new QtiComponentCollection($comp); }
/** * @see \qtism\data\state\VariableDeclaration::getComponents() */ public function getComponents() { $comp = parent::getComponents()->getArrayCopy(); if ($this->getLookupTable() !== null) { $comp[] = $this->getLookupTable(); } return new QtiComponentCollection($comp); }