public function getComponents()
 {
     return parent::getComponents();
 }
 public function getComponents()
 {
     $parentComponents = parent::getComponents();
     return new QtiComponentCollection(array_merge($parentComponents->getArrayCopy(), $this->getSimpleChoices()->getArrayCopy()));
 }
 /**
  * Create a GraphicInteraction object.
  * 
  * @param string $responseIdentifier The identifier of the associated response.
  * @param Object $object The associated image as an Object object.
  * @param string $id The id of the bodyElement.
  * @param string $class The class of the bodyElement.
  * @param string $lang The language of the bodyElement.
  * @param string $label The label of the bodyElement.
  * @throws InvalidArgumentException If one of the argument is invalid.
  */
 public function __construct($responseIdentifier, Object $object, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($responseIdentifier, $id, $class, $lang, $label);
     $this->setObject($object);
 }
 public function getComponents()
 {
     $parentComponents = parent::getComponents();
     return new QtiComponentCollection(array_merge($parentComponents->getArrayCopy(), array($this->getObject())));
 }
 /**
  * Create a new HottextInteraction object.
  * 
  * @param string $responseIdentifier The identifier of the associated response variable.
  * @param BlockStaticCollection $content A collection of BlockStatic objects as the content of the interaction.
  * @param string $id The id of the bodyElement.
  * @param string $class The class of the bodyElement.
  * @param string $lang The language of the bodyElement.
  * @param string $label The label of the bodyElement.
  */
 public function __construct($responseIdentifier, BlockStaticCollection $content, $id = '', $class = '', $lang = '', $label = '')
 {
     parent::__construct($responseIdentifier, $id, $class, $lang, $label);
     $this->setContent($content);
     $this->setMaxChoices(1);
     $this->setMinChoices(0);
 }